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