{"action":"opened","issue":{"url":"https://api.github.com/repos/dingo/api/issues/570","labels_url":"https://api.github.com/repos/dingo/api/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/570/comments","events_url":"https://api.github.com/repos/dingo/api/issues/570/events","html_url":"https://github.com/dingo/api/issues/570","id":100143821,"number":570,"title":"\"404 Not Found\" when using API_DOMAIN. With API_PREFIX works fine.","user":{"login":"eduacostam","id":53499,"avatar_url":"https://avatars.githubusercontent.com/u/53499?v=3","gravatar_id":"","url":"https://api.github.com/users/eduacostam","html_url":"https://github.com/eduacostam","followers_url":"https://api.github.com/users/eduacostam/followers","following_url":"https://api.github.com/users/eduacostam/following{/other_user}","gists_url":"https://api.github.com/users/eduacostam/gists{/gist_id}","starred_url":"https://api.github.com/users/eduacostam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduacostam/subscriptions","organizations_url":"https://api.github.com/users/eduacostam/orgs","repos_url":"https://api.github.com/users/eduacostam/repos","events_url":"https://api.github.com/users/eduacostam/events{/privacy}","received_events_url":"https://api.github.com/users/eduacostam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-10T19:06:05Z","updated_at":"2015-08-10T19:06:05Z","closed_at":null,"body":"Fresh install of Laravel 5.1 using laravel installer. I require dingo API through composer using\r\n`composer require dingo/api:0.10.*@dev`. (commit edf4b50)\r\n\r\nAfter that I configure in my `.env`:\r\n```ini\r\nAPI_DOMAIN=local.l5.api.server.com\r\n#API_DOMAIN=local.l5.api.server.com:44300\r\nAPI_VERSION=v1\r\nAPI_CONDITIONAL_REQUEST=false\r\nAPI_STRICT=false\r\nAPI_DEBUG=true\r\n```\r\n\r\nMy routes.php\r\n```php\r\n/**\r\n * @var \\Dingo\\Api\\Routing\\Router $api\r\n */\r\n$api = app('api.router');\r\n\r\n/*\r\n|--------------------------------------------------------------------------\r\n| API Routes\r\n|--------------------------------------------------------------------------\r\n*/\r\n\r\n$params = [\r\n    'version' => 'v1',\r\n    //'prefix' => 'api',\r\n    'namespace' => 'App\\\\Http\\\\Controllers',\r\n];\r\n\r\n$api->group($params, function($api)\r\n{\r\n    $api->get('users', 'UsersController@index');\r\n});\r\n```\r\n\r\nIf I point my browser to `https://local.l5.api.server.com:44300/users` I get:\r\n```json\r\n{\r\n    \"message\": \"404 Not Found\",\r\n    \"status_code\": 404,\r\n    \"debug\": \r\n    {\r\n        \"line\": 143,\r\n        \"file\": \"/home/vagrant/Code/l5.api.server.com/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php\",\r\n        \"class\": \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\",\r\n        \"trace\": [...]\r\n    }\r\n}\r\n```\r\n\r\nNow, if I comment out on my `.env` the `API_DOMAIN` config and add the `API_PREFIX` and edit my route to add that prefix then it works fine and I get a response back. So I'm having this issue only when having a domain configured. I've tried putting my domain with and without port number (Homestead works with ports 8000 and 44300) but have no change at all.\r\n\r\nI really don't know what else to try. I have done 3 fresh installs already following step by step the wiki and nothing changes. With `API_PREFIX` it works fine, without prefix but with `API_DOMAIN` it does not. Maybe I'm missing something.\r\n\r\nThanks in advance for any help anyone can give.\r\n"}}