1 | <?php |
||
8 | class CountryWithCustomLocaleKey extends Eloquent |
||
9 | { |
||
10 | use Translatable; |
||
11 | |||
12 | public $table = 'countries'; |
||
13 | public $translatedAttributes = ['name']; |
||
14 | |||
15 | /* |
||
16 | * You can customize per model, which attribute will |
||
17 | * be used to save the locale info into the database |
||
18 | */ |
||
19 | public $localeKey = 'language_id'; |
||
20 | } |
||
21 |