I\'m using the API route and a middleware to check the token.
I usually pass two parameters to the api routes:
Route::get(\'/show-profile/{token}/{userId}/