{"action":"closed","issue":{"url":"https://api.github.com/repos/dingo/api/issues/579","labels_url":"https://api.github.com/repos/dingo/api/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/dingo/api/issues/579/comments","events_url":"https://api.github.com/repos/dingo/api/issues/579/events","html_url":"https://github.com/dingo/api/issues/579","id":101138595,"number":579,"title":"Pagination route problem","user":{"login":"rlacerda83","id":9198556,"avatar_url":"https://avatars.githubusercontent.com/u/9198556?v=3","gravatar_id":"","url":"https://api.github.com/users/rlacerda83","html_url":"https://github.com/rlacerda83","followers_url":"https://api.github.com/users/rlacerda83/followers","following_url":"https://api.github.com/users/rlacerda83/following{/other_user}","gists_url":"https://api.github.com/users/rlacerda83/gists{/gist_id}","starred_url":"https://api.github.com/users/rlacerda83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlacerda83/subscriptions","organizations_url":"https://api.github.com/users/rlacerda83/orgs","repos_url":"https://api.github.com/users/rlacerda83/repos","events_url":"https://api.github.com/users/rlacerda83/events{/privacy}","received_events_url":"https://api.github.com/users/rlacerda83/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-15T04:06:20Z","updated_at":"2015-08-20T03:13:57Z","closed_at":"2015-08-20T03:13:56Z","body":"Hello,\r\n\r\nI'm having problems using paging Lumen .\r\n\r\nThe link returned by paging results in the 404 error .\r\n\r\nMy route:\r\n```\r\n$api->get('emails', 'App\\Http\\Controllers\\EmailController@send');\r\n```\r\nController:\r\n```\r\n$emails =  Email::paginate(5);\r\nreturn $this->response->paginator($emails, new EmailTransformer);\r\n```\r\n\r\nWhen access the data is successfully returned:\r\n```\r\nhttp://localhost:8000/api/emails/\r\n{\r\n  \"data\": [\r\n    ...\r\n  ],\r\n  \"meta\": {\r\n    \"pagination\": {\r\n      \"total\": 24,\r\n      \"count\": 5,\r\n      \"per_page\": 5,\r\n      \"current_page\": 1,\r\n      \"total_pages\": 5,\r\n      \"links\": {\r\n        \"next\": \"http://localhost:8000/api/emails/?page=2\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nBut the next page link results in an error . \r\n```\r\nhttp://localhost:8000/api/emails/?page=2\r\n{\r\n  \"message\": \"404 Not Found\",\r\n  \"status_code\": 404\r\n}\r\n```\r\n\r\nIf I remove the last bar , it works.\r\n```\r\nhttp://localhost:8000/api/emails?page=2\r\n```\r\nAny idea?\r\n\r\nThank you!"}}