This package is used to fasten your creating of new crud operations.
You can install the package via composer:
composer require magedahmad/speed-generator --dev
To publish configurations file run
php artisan vendor:publish --provider="MagedAhmad\SpeedGenerator\SpeedGeneratorServiceProvider"
Add your model&migration data in config/speed-generator
then run
php artisan crud:create cat
or if the model has media add --has-media
flag
php artisan crud:create cat --has-media
example
'cat' => [
'arabic' => ['القطة', 'القطط', 'قطه', 'قطط'],
'translatable' => [
'active' => false,
'translatable_fields' => [
],
],
'database_fields' => [
[
'name' => 'name',
'type' => 'string',
'options' => [
'nullable' => ''
],
],
]
]
then run
php artisan crud:create cat
composer dump-autoload && php artisan migrate && php artisan db:seed --class=CatSeeder && php artisan l5-swagger:generate
and that's it 🎉
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email maged.ahmedr@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
-
Add (foreign keys) functionalities
-
Handling files (pdf, docs, etc)
-
Customize sidebar icon
-
Automatically Add model counter to dashboard home page
-
Request data
-
Work on filters
-
Change from file to UI