laravel resource controller functions code example Example: resource controller laravel Route::resource('photos', PhotoController::class);