Package Data | |
---|---|
Maintainer Username: | andynoelker |
Maintainer Contact: | andynoelker@gmail.com (Andy Noelker) |
Package Create Date: | 2015-09-25 |
Package Last Update: | 2015-09-25 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:11:26 |
Package Statistics | |
---|---|
Total Downloads: | 960 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
This Laravel 5 package adds a Blade view generator to make your development process easier.
composer require andynoelker/laravel-5-view-generator
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');
}
}
php artisan make:view myView
This will generate a blank myView.blade.php
file in the views directory.
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')