Laravel - Create automated CRUD?
问题 Is Artisan got a tool for create the code of a CRUD automated in Laravel? I search information about it but all the options are with an external tool outside of Artisan. 回答1: create the code of a CRUD No! But if you want the CRUD methods copied from a properly defined stub use php artisan make:controller EntityController -r where the -r flag means a resourceful controller for the model Entity with create , show , index , store , update , edit , and delete methods The methods uses the proper