{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/15638","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/15638/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/15638/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/15638/events","html_url":"https://github.com/laravel/framework/issues/15638","id":179662395,"number":15638,"title":"Route model binding generating weird model name","user":{"login":"rafael-renan-pacheco","id":12160864,"avatar_url":"https://avatars.githubusercontent.com/u/12160864?v=3","gravatar_id":"","url":"https://api.github.com/users/rafael-renan-pacheco","html_url":"https://github.com/rafael-renan-pacheco","followers_url":"https://api.github.com/users/rafael-renan-pacheco/followers","following_url":"https://api.github.com/users/rafael-renan-pacheco/following{/other_user}","gists_url":"https://api.github.com/users/rafael-renan-pacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/rafael-renan-pacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafael-renan-pacheco/subscriptions","organizations_url":"https://api.github.com/users/rafael-renan-pacheco/orgs","repos_url":"https://api.github.com/users/rafael-renan-pacheco/repos","events_url":"https://api.github.com/users/rafael-renan-pacheco/events{/privacy}","received_events_url":"https://api.github.com/users/rafael-renan-pacheco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T01:57:06Z","updated_at":"2016-09-28T11:46:41Z","closed_at":"2016-09-28T08:49:50Z","body":"- Laravel Version: 5.3.10\r\n- PHP Version: 7.0.8\r\n- Database Driver & Version: MySQL 15.1\r\n\r\n### Description:\r\nHi there!\r\n\r\nIn a fresh Laravel 5.3 installation, I'm having a problem when using route model binding in a specific resource. To all my other resources it works fine, but for this specific one, look what is happening:\r\n\r\nThis is the route declaration using a resourcefull controller:\r\n\r\n```php\r\nRoute::resource('ordem.conta', 'OrdemContaController', ['except' => 'show']);\r\n```\r\n\r\nSo, in the controller file I'll expect the following bindings in the @edit action:\r\n\r\n```php\r\npublic function edit(Ordem $ordem, Conta $conta)\r\n{\r\n    ...\r\n}\r\n```\r\n\r\nThat shall be fired when I call this URL:\r\n\r\n`localhost/ordem/38/conta/38/edit`\r\n\r\nBut, something weird happened. The `Ordem` model was found as expected, but `Conta` model was not. So I ran `php artisan route:list` to look for any issues in these routes, and I found this:\r\n\r\n```\r\nGET|HEAD | ordem/{ordem}/conta/{contum}/edit | ordem.conta.edit | App\\Http\\Controllers\\OrdemContaController@edit\r\n``` \r\n\r\nAs you can see, `conta` became `contum` by some reason. And this was responsible for not finding my `Conta` model through model binding.\r\n\r\nThe same issue exists for PUT/PATCH and DELETE, which requires model binding for the `Conta` object.\r\n\r\nIs this a bug, or there is a way to disable this \"contum\" word?\r\n\r\nBest regards,\r\nRafael Pacheco.\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/250144421","html_url":"https://github.com/laravel/framework/issues/15638#issuecomment-250144421","issue_url":"https://api.github.com/repos/laravel/framework/issues/15638","id":250144421,"user":{"login":"rafael-renan-pacheco","id":12160864,"avatar_url":"https://avatars.githubusercontent.com/u/12160864?v=3","gravatar_id":"","url":"https://api.github.com/users/rafael-renan-pacheco","html_url":"https://github.com/rafael-renan-pacheco","followers_url":"https://api.github.com/users/rafael-renan-pacheco/followers","following_url":"https://api.github.com/users/rafael-renan-pacheco/following{/other_user}","gists_url":"https://api.github.com/users/rafael-renan-pacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/rafael-renan-pacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafael-renan-pacheco/subscriptions","organizations_url":"https://api.github.com/users/rafael-renan-pacheco/orgs","repos_url":"https://api.github.com/users/rafael-renan-pacheco/repos","events_url":"https://api.github.com/users/rafael-renan-pacheco/events{/privacy}","received_events_url":"https://api.github.com/users/rafael-renan-pacheco/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T11:46:41Z","updated_at":"2016-09-28T11:46:41Z","body":"Is this a new behavior in 5,3? In 5.2 and before it works just fine.\r\n\r\ncc @themsaid "}}
{"actor":{"display_login":"rafael-renan-pacheco"}}