This package is a Laravel CRUD generator that will generate CRUD code for you simply. This package will reduce the time to create a module in Laravel.
It generates the following code:
- Model
- Controller
- Store and Update Request
- Resource
- Run
composer require kemboielvis/laravel-crud-generator
-
To generate Code
The model name should be inside the
App/Models
DirectoryFor the CRUD to be generated fill out the fillables then run the command below
php artisan crud:generate {ModelName}
The code will be generated in the following directories:
- Controllers:
App/Http/Controllers
- StoreRequest:
App/Http/Requests/{ModelName}/StoreRequest.php
- UpdateRequest:
App/Http/Requests/{ModelName}/UpdateRequest.php
- Resource:
App/Http/Resources/{ModelName}/{ModelName}Resource.php
When using this code generator you should be careful because it will overwrite the existing files and written code
The Laravel CRUD Generator is open-sourced software licensed under the MIT license.
If you have any new features or bugs you can create an issue or create a pull request.