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