get('/user', function (Request $request) { return $request->user(); }); Route::middleware('auth:sanctum')->apiResource('/game', \App\Http\Controllers\GameController::class);