4mm / laravel-10-scaffold-command
create all necessary files for crud with one command.
dev-main
2023-03-30 19:12 UTC
Requires
- php: ^8.1|^8.2
- illuminate/console: ^10.0
- illuminate/database: ^10.0
- illuminate/support: ^10.0
This package is not auto-updated.
Last update: 2024-11-22 05:47:52 UTC
README
create all necessary files for crud operation with one command
- model
- resource controller, api or just regular crud controller
- migration with fields
- feature tests
- views, if crud is not api
- index
- create
- show
- edit
- resources, if crud is api
- resource class
- resource collection class
installation
composer require 4mm/laravel-10-scaffold-command
php artisan vendor:publish --tag=scaffold-stubs
next
php artisan vendor:publish --tag=scaffold-stubs
usage
php artisan scaffold {your entity name}
like php artisan scaffold Category --fields=name:string,slug:string,parent_id:foreignId
enjoy :)