Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This route will require authentication with a valid api_token, and then return the relevant user, as JSON. -
'prefix' => 'api/v1',
'middleware' => ['api', 'auth:api']
], function () {
Route::get('/', function () {
return Auth::guard('api')->user();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.