location @laravelapi {
rewrite /api/(.*)?$ /api/index.php?$is_args$args last;
}
When we try access to api/routeexample, laravel gets only routeexample part, and throws 404 error. How we can send full url including ‘api’ part?
location @laravelapi {
rewrite /api/(.*)?$ /api/index.php?$is_args$args last;
}
When we try access to api/routeexample, laravel gets only routeexample part, and throws 404 error. How we can send full url including ‘api’ part?
2
Answers
So I'm just added
into my routes/web.php as hotfix, but i will search for better solution
I m adding an example of how we define route for API request:
In routes/api.php
});