“Route :: Ressource” Code-Antworten

Route :: Ressource

php artisan make:controller PhotoController --resource


# in your routes ::
use App\Http\Controllers\PhotoController;
 
Route::resource('photos', PhotoController::class);
Mushy Macaque

Route :: Ressource

Route::resource('photos', PhotoController::class)->only([
    'index', 'show'
]);

Route::resource('photos', PhotoController::class)->except([
    'create', 'store', 'update', 'destroy'
]);
John wick

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen