Laravel 9 Маршрут :: Контроллер
Route::controller(AuthController::class)->prefix('auth')->group(function () {
Route::post('/login', 'login');
Route::middleware('auth:sanctum')->get('/user', 'user');
});
Shadow