Answers for "laravel sanctum Protecting routes"

PHP
0

laravel sanctum Protecting routes

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});
Posted by: Guest on July-24-2021

Browse Popular Code Answers by Language