I have a Laravel application using API token authentication. By default, the user needs to pass the api_token
parameter as part of the URL, but I want to change api_token
to a custom name parameter like api_key
.
Currently the full URL looks like:
https://www.example.com/api/v2/?api_token=something&action=balance
however I want it to look like following:
https://www.example.com/api/v2?api_key=something&action=balance
OR
https://www.example.com/api/v2?key=something&action=balance
My API routes are using a middleware called auth:api
, but I am unable to find this middleware to try and change its configuration.