-
-
Save uno-de-piera/7b5e9338ae9933b96cb3133575af970a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::group(['prefix' => 'users', 'middleware' => 'auth'], function() | |
{ | |
Route::get('/:id', function($id) { | |
echo $id; | |
})->name('users.detail'); | |
Route::get('/', function() { | |
$users = \App\User::all(); | |
return view('users.index', compact('users')); | |
})->name('users.index'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment