baine / laravel-auto-crud
dev-master
2023-08-15 18:42 UTC
This package is not auto-updated.
Last update: 2026-04-08 07:11:48 UTC
README
To install run composer require baine/laravel-auto-crud.
To generate an auto-crud controller from the console, run php artisan generate:auto-crud App\\Models\\<CrudModel>.
A new Controller class will be put into the App\Http\Controllers directory.
To generate an auto-crud controller from anywhere else, you can use the following code:
(new Baine\AutoCrud\Services\CreateController(App\Models\<CrudModel>::class))->execute()
and the class will create a crud controller just like the command.