https://github.com/tefoh/laravel-scaffold-command
https://github.com/tefoh/laravel-scaffold-command
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tefoh/laravel-scaffold-command
- Owner: Tefoh
- Created: 2021-09-15T11:10:24.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-15T11:11:57.000Z (almost 5 years ago)
- Last Synced: 2025-03-27T08:45:11.610Z (over 1 year ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 11
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# laravel scaffold command
## 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
```bash
composer require tefoh/laravel-scaffold-command
```
next
```bash
php artisan vendor:publish --tag=scaffold-stubs
```
### usage
```bash
php artisan scaffold {your entity name}
like php artisan scaffold Category --fields=name:string,slug:string,parent_id:foreignId
```
enjoy :)