Skip to content
Snippets Groups Projects
Commit 90b4166c authored by LIENHARDT QUENTIN's avatar LIENHARDT QUENTIN :snake:
Browse files

Route with auth

parent 1807c9bd
Branches
Tags
No related merge requests found
......@@ -13,10 +13,20 @@ use Illuminate\Support\Facades\Route;
|
*/
Route::get('/', function () {
Route::get('/', function ()
{
return view('welcome');
});
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () {
Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function ()
{
return view('dashboard');
})->name('dashboard');
Route::group(['middleware' => 'auth'], function ()
{
Route::get('/auth', function ()
{
return 'Logged';
});
});
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment