Level 3
You can pass it as param segment in the route.
Route::get("/api/{token}", function($token) {
return $token;
});
or you can get the token through the request object like this
Route::get("/api", function(Request $request) {
return $request->get("token", null);
});
but you can send the token in the query params of url like this
/api?token=1nx4dfe64wer