lanciweb/laravel-make-view 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

MIT

统计信息

  • 总下载量: 2.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-05