It's possible that the issue is related to the upgrade from Laravel 6 to 10, but it's also possible that it's unrelated. Here are a few things to check:
-
Check the Laravel logs to see if there are any errors being thrown when the mobile app tries to access the API page.
-
Check the network traffic in the mobile app to see if there are any errors being returned by the API.
-
Check the server logs to see if there are any errors being thrown when the mobile app tries to access the API page.
-
Check the mobile app code to make sure that it's still sending the auth_token parameter correctly.
-
Check the API code to make sure that it's still accepting the auth_token parameter correctly.
-
Check the mobile app code to make sure that it's still handling the response from the API correctly.
-
Check the API code to make sure that it's still returning the correct response to the mobile app.
If none of these steps help, it may be necessary to do some debugging to figure out what's going wrong. One way to do this is to add some logging statements to the mobile app and the API code to see where the problem is occurring. For example, you could add a log statement to the mobile app that logs the response from the API, and a log statement to the API code that logs the request parameters. This should help you narrow down the problem.
Also, it's worth noting that CORS issues can sometimes be tricky to diagnose, so it's possible that the issue is related to CORS even if the API is still working. If you suspect that this might be the case, you could try adding some debug statements to the Laravel code to see if the CORS middleware is being applied correctly.
// Example of adding debug statements to Laravel code
public function handle($request, Closure $next)
{
Log::debug('CORS middleware applied');
return $next($request);
}