adele332/crudgenerator
最新稳定版本:1.0.0
Composer 安装命令:
composer require adele332/crudgenerator
包简介
CRUD generator for Laravel framework
README 文档
README
This Laravel package will give you an opportunity to create CRUD functionality faster just simply using command line. You will be able from command line:
- Create Models
- Create Migrations
- Create Controllers
- Create View for particular tables
- Create Main website views with login, registration and CRUD functionality
Requirements
This package requires:
- Laravel >= 9.33.0
- PHP >= 8.0.2
- Composer >= 2.4.2
Installation
- Run command
composer require adele332/crudgenerator
- Run command
php artisan list
- Check if in the list you see newly added commands
If you see new commands that means that you successfuly installed this package! :)
Newly added commands to the project
There will be 5 new commands which you will see after running command 'php artisan list':
- php artisan make:model
- php artisan make:controllers
- php artisan make:migrations
- php artisan make:view
- php artisan make:main
Examples of suitable commands:
- Command for creating Model
php artisan make:model Genre --table="genres" --fields="['id','title','created_at','updated_at']"
- Command for creating Controller
php artisan make:controllers Genres --model="Genre" --fields-validation="'title' => 'required|alpha|min:2'" --dir-to-save-file=admin
- Command for creating Migration
php artisan make:migrations Genres --table-schema="title:string"
- Command for creating Views (you should use it only then you have data tables in database)
php artisan make:model Genre --table="genres" --fields="['id','title','created_at','updated_at']"
- Command for creating Main views (this command must be used only once)
php artisan make:main MyCrudGenerator
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-13