bjhansen-ualr / LaravelArtisanMakeView by bjhansen

Artisan command to create Blade views
216
1
2
Package Data
Maintainer Username: bjhansen
Maintainer Contact: bjhansen@benjaminhansen.net (benjaminhansen)
Package Create Date: 2016-10-12
Package Last Update: 2024-09-25
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2025-02-12 15:10:40
Package Statistics
Total Downloads: 216
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

LaravelArtisanMakeView

Command line utility to create views in Laravel.

Requires >= Laravel 5.0

Installation

  1. Add "bjhansen/laravel-artisan-make-view": "dev-master" to your composer.json file's require-dev section
  2. Run composer update
  3. Open app/Console/Kernel.php and add \LaravelMakeView\MakeView::class, to the protected $commands array

Usage

php artisan make:view view.name --extends=layouts.app --bootstrap=bs-version --empty

  • extends is optional if you set BASE_VIEW in your project's .env file
    • If BASE_VIEW is set, but you use the --extends option, --extends takes precedence.
  • bootstrap is optional. Preconfigures the base view with Twitter Bootstrap CSS and JS
    • --bootstrap=v3 or --bootstrap=v4
  • empty option is optional. Creates an empty view file with no layout extension.
    • When using the empty option all other options are ignored.