magedahmad / speed-generator
A crud generator for scaffolding dashboard
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
This package is used to fasten your creating of new crud operations.
Installation
You can install the package via composer:
composer require magedahmad/speed-generator --dev
Configuration
To publish configurations file run
php artisan vendor:publish --provider="MagedAhmad\SpeedGenerator\SpeedGeneratorServiceProvider"
Usage
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 🎉
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email maged.ahmedr@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
TODO
-
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