{"action":"created","issue":{"url":"https://api.github.com/repos/dimsav/laravel-translatable/issues/83","labels_url":"https://api.github.com/repos/dimsav/laravel-translatable/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/dimsav/laravel-translatable/issues/83/comments","events_url":"https://api.github.com/repos/dimsav/laravel-translatable/issues/83/events","html_url":"https://github.com/dimsav/laravel-translatable/issues/83","id":54428491,"number":83,"title":"Default translations on translated model","user":{"login":"arall","id":1453137,"avatar_url":"https://avatars.githubusercontent.com/u/1453137?v=3","gravatar_id":"","url":"https://api.github.com/users/arall","html_url":"https://github.com/arall","followers_url":"https://api.github.com/users/arall/followers","following_url":"https://api.github.com/users/arall/following{/other_user}","gists_url":"https://api.github.com/users/arall/gists{/gist_id}","starred_url":"https://api.github.com/users/arall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arall/subscriptions","organizations_url":"https://api.github.com/users/arall/orgs","repos_url":"https://api.github.com/users/arall/repos","events_url":"https://api.github.com/users/arall/events{/privacy}","received_events_url":"https://api.github.com/users/arall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-15T09:32:26Z","updated_at":"2015-01-16T08:50:33Z","closed_at":null,"body":"Can I somehow use a model field (`name`) as default translation fallback instead a row on translations table?\r\n\r\nFor example:\r\n\r\n#### Table countries\r\n\r\nid     | name      | iso\r\n------|------------| ----------\r\n1 | Greece | gr\r\n\r\n#### Table country_translations\r\n\r\nid     | country_id | name | locale\r\n------|------------| ----------| ----------\r\n1 | 1 | Griechenland | de\r\n\r\n#### Code \r\n```php\r\n$country = Country::where('iso', '=', 'gr')->first();\r\necho $country->translate('en')->name; // Greece\r\n\r\nApp::setLocale('en');\r\necho $country->name;     // Greece\r\n```"},"comment":{"url":"https://api.github.com/repos/dimsav/laravel-translatable/issues/comments/70224559","html_url":"https://github.com/dimsav/laravel-translatable/issues/83#issuecomment-70224559","issue_url":"https://api.github.com/repos/dimsav/laravel-translatable/issues/83","id":70224559,"user":{"login":"arall","id":1453137,"avatar_url":"https://avatars.githubusercontent.com/u/1453137?v=3","gravatar_id":"","url":"https://api.github.com/users/arall","html_url":"https://github.com/arall","followers_url":"https://api.github.com/users/arall/followers","following_url":"https://api.github.com/users/arall/following{/other_user}","gists_url":"https://api.github.com/users/arall/gists{/gist_id}","starred_url":"https://api.github.com/users/arall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arall/subscriptions","organizations_url":"https://api.github.com/users/arall/orgs","repos_url":"https://api.github.com/users/arall/repos","events_url":"https://api.github.com/users/arall/events{/privacy}","received_events_url":"https://api.github.com/users/arall/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T08:50:33Z","updated_at":"2015-01-16T08:50:33Z","body":"@dimsav Ok, thanks.\r\n\r\nI will try to fork and code it.\r\n\r\nThanks for your time, and for the package, its awesome."}}