trogne
256
6
Laravel

how to hit the api route

Posted 9 months ago by trogne

In routes, there's a "api.php" file.

How do I hit the callback ?

Route::middleware('auth:api')->get('/user', function (Request $request) {
    die('aaaa');
    return $request->user();
});

How can I see the "aaaa" ?

Please sign in or create an account to participate in this conversation.