{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/3090","labels_url":"https://api.github.com/repos/laravel/framework/issues/3090/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/3090/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/3090/events","html_url":"https://github.com/laravel/framework/issues/3090","id":24900466,"number":3090,"title":"[Proposal] Classmap for MorphTo","user":{"login":"tomschlick","id":70184,"avatar_url":"https://avatars.githubusercontent.com/u/70184?v=3","gravatar_id":"","url":"https://api.github.com/users/tomschlick","html_url":"https://github.com/tomschlick","followers_url":"https://api.github.com/users/tomschlick/followers","following_url":"https://api.github.com/users/tomschlick/following{/other_user}","gists_url":"https://api.github.com/users/tomschlick/gists{/gist_id}","starred_url":"https://api.github.com/users/tomschlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomschlick/subscriptions","organizations_url":"https://api.github.com/users/tomschlick/orgs","repos_url":"https://api.github.com/users/tomschlick/repos","events_url":"https://api.github.com/users/tomschlick/events{/privacy}","received_events_url":"https://api.github.com/users/tomschlick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2013-12-30T21:05:03Z","updated_at":"2015-06-29T18:08:54Z","closed_at":null,"body":"If there is not currently, it would be great to have a class to (int/char) map for the MorphTo database ability. \r\n\r\nThis would save a ton of space in the db as each record would not have to store the full path of a class. It would also provide portability for moving classes around (changing namepace) without having to update the database records, just a mapping.\r\n\r\nIdeally this map might be passed as a parameter on the morphTo method or read from a config file that may look like this\r\n\r\n```php\r\n\r\n<?php\r\n\r\nreturn array(\r\n    1 => '\\Domain\\Folder\\ClassOne',\r\n    2 => '\\Domain\\Folder\\ClassTwo',\r\n);\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/116780094","html_url":"https://github.com/laravel/framework/issues/3090#issuecomment-116780094","issue_url":"https://api.github.com/repos/laravel/framework/issues/3090","id":116780094,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T18:08:54Z","updated_at":"2015-06-29T18:08:54Z","body":"Sure. I think we need a \"community\" label or something so we can filter those issues out when we're looking through."}}