Laravel How to remove “api” Prefix from subdomain URL
问题 I have created a Laravel application which is both Web application and provides REST APIs to android and iOS platforms. I have two route files one is api.php and other is web.php and routes\api.php routing as follows: routes/api.php Route::group([ 'domain'=>'api.example.com', function(){ // Some routes .... } ); and nginx serve blocks configured can be seen here server { listen 80; listen [::]:80; root /var/www/laravel/public; index index.php; server_name api.example.com; location / { try