tediscript / breeze-crud
Generate CRUD based on Laravel Breeze starter kit
v1.0.1
2021-06-25 10:32 UTC
Requires
- php: ^7.3|^8.0
- illuminate/filesystem: ^8.42
- illuminate/support: ^8.42
- illuminate/validation: ^8.42
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Generate CRUD based on Laravel Breeze starter kit. It will generate Model, resource Controller and Views. It also register resource controller to routes/web.php. There are 2 attributes as a sample (title and description). Oh you have to generate migration manually for it.
Installation via composer
Run command:
composer require --dev tediscript/breeze-crud
Or add this script to your composer.json and run composer update
"require-dev": {
"tediscript/breeze-crud": "^0.1.0"
}
Usage
Just like you create model via php artisan.
Create CRUD
php artisan breeze:crud ModelName
Given ModelName is School then it will generate:
App/Http/Controllers/SchoolController.phpapp/Models/School.phpresources/views/schools/create.blade.phpresources/views/schools/edit.blade.phpresources/views/schools/index.blade.phpresources/views/schools/show.blade.php
and add resource controller to routes/web.php
Delete CRUD
php artisan breeze:crud ModelName -d
Above command will delete all file generated before.
Thats it.