Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel 9 Route::controller

Route::controller(AuthController::class)->prefix('auth')->group(function () {
    Route::post('/login', 'login');
    Route::middleware('auth:sanctum')->get('/user', 'user');
});
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
1+4 =