andynoelker/laravel-5-view-generator

Adds a Blade view generator to Laravel 5.
964 5
Install
composer require andynoelker/laravel-5-view-generator
Latest Version:1.0
PHP:>=5.4.0
License:MIT
Last Updated:Sep 25, 2015
Links: GitHub  ·  Packagist
Maintainer: andynoelker

Laravel 5 View Generator

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')

Related Packages

amptech/laravel-blade-scaffold

Generador automático de vistas CRUD Blade para Laravel con componentes reutiliza...

17 0
ahinkle/auto-resolvable-blade-components

A Laravel package to automatically resolve your Blade Component views based on t...

12,591 2
laraport/blade

Unofficial port of laravel's illuminate/view.

5,221 0
igaster/laravel-theme

Laravel Themes: Asset & Views folder per theme. Theme inheritance. Blade integra...

1,263,205 515
philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone...

684,122 355