lanciweb/laravel-make-view
最新稳定版本:v1.2.1
Composer 安装命令:
composer require lanciweb/laravel-make-view
包简介
A Laravel package that allows to generate blade views via Artisan
README 文档
README
Laravel MakeView is a Laravel Package that allows to generate views via an artisan command.
Installation
Use composer to install MakeView.
composer require lanciweb/laravel-make-view
Usage
Single 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.
Crud Option:
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.
License
统计信息
- 总下载量: 2.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-05