Laravel MakeView is a Laravel Package that allows to generate views via an artisan command.
Use composer to install MakeView.
composer require lanciweb/laravel-make-view
Use the commands below and the dot notation to easily create the blade files for your views:
php artisan make:view home
# creates 'home.blade.php' in the 'resources/views' folder.
php artisan make:view guests.home
# creates 'home.blade.php' in the 'resources/views/guests' folder.
# The folder is created if it does not exists yet.
php artisan make:view backoffice.admin.home
# creates 'home.blade.php' in the 'resources/views/backoffice/admin' folder.
# All folders are created if they do not exist yet.
Use the CRUD option to immeiately create the folder and the conventional resource views:
php artisan make:view posts --crud
# creates 'index.blade.php', 'show.blade.php`, `create.blade.php' and `edit.blade.php'
# in the 'resources/views/posts' folder.
php artisan make:view posts -c
# shorthand for the same result as above
php artisan make:view admin.posts -c
# creates 'index.blade.php', 'show.blade.php`, `create.blade.php' and `edit.blade.php'
# in the 'resources/views/admin/posts' folder.