andynoelker/laravel-5-view-generator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andynoelker/laravel-5-view-generator

最新稳定版本:1.0

Composer 安装命令:

composer require andynoelker/laravel-5-view-generator

包简介

Adds a Blade view generator to Laravel 5.

README 文档

README

This Laravel 5 package adds a Blade view generator to make your development process easier.

Installation

Step 1: Install Through Composer

composer require andynoelker/laravel-5-view-generator

Step 2: Add the Service Provider

Because you only want to use this generator for development, you will want to add it to the provider located in app/Providers/AppServiceProvider.php instead of adding to the providers array inside config/app.php.

public function register()
{
    if ($this->app->environment() == 'local') {
        $this->app->register('Andynoelker\Laravel5ViewGenerator\ViewGeneratorServiceProvider');
    }
}

Usage

php artisan make:view myView

This will generate a blank myView.blade.php file in the views directory.

Parent Option

You can optionally specify a parent view that your new view will extend.

php artisan make:view myView --parent="parentView"

This will generate a view file that opens with:

@extends('parentView')

统计信息

  • 总下载量: 964
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-25