Stars: 166
Forks: 18
Pull Requests: 4
Issues: 10
Watchers: 7
Last Updated: 2023-02-16 13:15:42
Generate a CRUD scaffold with validation rules like a breeze.
License: MIT License
Languages: PHP
Generate a CRUD scaffold like a breeze.
Compatible with Laravel 5.x 6.x 7.x 8.x 9.x 10.x.
$ composer require mehradsadeghi/laravel-crud-generator
It works based on your $fillable
property of the target model.
If you would like to use $guarded
instead of $fillable
, It is supported too.
In that case you'll need to have an existing Schema
(table), Then the crud generator will automatically figures out your fillables.
As an example when $fillable
is available:
$ php artisan make:crud UserController --model=User --validation
You can modify default stubs by publishing them:
$ php artisan crud:publish
The published stubs will be located within stubs/crud
directory in the root of your application.
Any changes you make to these stubs will be reflected when you generate crud.
If you find this package useful and you want to encourage me to maintain and work on it, Just press the star button to declare your willing.
Send me as much as a cup of tea worth in your country, so I'll have the energy to maintain this package.