Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created August 1, 2021 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/dcbd3602605ee3c8c1bc2a0563f40702 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/dcbd3602605ee3c8c1bc2a0563f40702 to your computer and use it in GitHub Desktop.
<?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