{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/26657","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/26657/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/26657/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/26657/events","html_url":"https://github.com/laravel/framework/issues/26657","id":385452702,"node_id":"MDU6SXNzdWUzODU0NTI3MDI=","number":26657,"title":"Str::singular turns Meta into Metum","user":{"login":"MadMikeyB","id":831828,"node_id":"MDQ6VXNlcjgzMTgyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/831828?v=4","gravatar_id":"","url":"https://api.github.com/users/MadMikeyB","html_url":"https://github.com/MadMikeyB","followers_url":"https://api.github.com/users/MadMikeyB/followers","following_url":"https://api.github.com/users/MadMikeyB/following{/other_user}","gists_url":"https://api.github.com/users/MadMikeyB/gists{/gist_id}","starred_url":"https://api.github.com/users/MadMikeyB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadMikeyB/subscriptions","organizations_url":"https://api.github.com/users/MadMikeyB/orgs","repos_url":"https://api.github.com/users/MadMikeyB/repos","events_url":"https://api.github.com/users/MadMikeyB/events{/privacy}","received_events_url":"https://api.github.com/users/MadMikeyB/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-28T20:54:49Z","updated_at":"2018-11-29T13:42:37Z","closed_at":"2018-11-29T13:42:36Z","author_association":"NONE","body":"- Laravel Version: 5.7.12\r\n- PHP Version: 7.2.5\r\n- Database Driver & Version: MySQL 5.7.22\r\n\r\n### Description:\r\n\r\nAs mentioned in https://github.com/laravel/nova-issues/issues/918, Meta is always 'singularized' to Metum, causing issues in Nova land.\r\n\r\nAfter digging through the code, I believe this to be the fault of Doctrine's `Pluralizer::singular` method which `Str::singular` defers to, so I'm unsure what could be done in Laravel land.\r\n\r\nAs you can see in https://github.com/laravel/nova-issues/issues/918#issuecomment-434813148, I have managed to work around this with the arguments passed through to the second and third arguments to the `HasMany` relationship.\r\n\r\n### Steps To Reproduce:\r\n\r\n`routes/web.php`, add the following code:\r\n\r\n```\r\nRoute::get('test', function() {\r\n    return \\Illuminate\\Support\\Str::singular('Meta');\r\n});\r\n```\r\n\r\nVisit `laravel.test/test`, see `Metum`.\r\n"}}
{"actor":{"display_login":"driesvints"}}