Create A CRUD Resource Controller

PHOTO EMBED

Fri May 14 2021 22:13:47 GMT+0000 (Coordinated Universal Time)

Saved by @slendabilt

php artisan make:controller ControllerName --resource
content_copyCOPY

artisan command to create CRUD (create, update, delete) resource controller. Upon creation, you can now use the route::resource command in the router. Ex: Route::resource('uri', ControllerName::class); *** Don't forget to include the namespace *** use App\Http\Controllers\ControllerName;

https://laravel.com/docs/8.x/controllers