magedahmad/speed-generator

A crud generator for scaffolding dashboard

v1.0.0 2021-09-17 11:14 UTC

This package is auto-updated.

Last update: 2024-04-19 01:22:07 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

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