Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created Aug 1, 2021
Embed
What would you like to do?
<?php
use App\Http\Controllers\ProjectController;
use Illuminate\Support\Facades\Route;
// genera todas las rutas excepto la del método show
Route::resource("projects", ProjectController::class)
->except("show");
// sólo genera las rutas para los métodos index, create, store, edit, update
Route::resource("projects", ProjectController::class)
->only("index", "create", "store", "edit", "update");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment