Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

laravel sanctum

use IlluminateHttpRequest;

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #sanctum
ADD COMMENT
Topic
Name
3+3 =