Route::controller(AuthController::class)->prefix('auth')->group(function () { Route::post('/login', 'login'); Route::middleware('auth:sanctum')->get('/user', 'user'); });