Looking to hire Laravel developers? Try LaraJobs

laravel-auto-crud maintained by baine

Author
Last update
2023/08/15 20:42 (dev-master)
License
Links
Downloads
756

Comments
comments powered by Disqus

Auto Generate Laravel Resourceful CRUD controllers

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 <CrudModel>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.