I want to understand how to configure nginx for a laravel app, so that all URLs like /api/v1/xxx
can be handled by laravel router?
PS: I can understand how laravel's router works, but I don't know why nginx would send all URL requests to laravel app. Which php file connects nginx with laravel's router? Is it the index.php
inside laravel's public folder? If so, how it accomplished this mapping?