Thing::create(['title'=> [ // Explicit locale definition for title'en'=>'Title in english','ru'=>'Русский заголовок' ],// Use default locale for description'description'=>'Description in the default locale'])
Sorry. That's it for now. More info coming... Take a look into sources.
[x] Write basic info here
[ ] Write more info here
[ ] Create tests
[ ] Test all provided functional
[ ] Add artisan command to create migrations for Translatable models
[ ] Replace id PK with [item_id, locale] composite PK in _lls table
[ ] Add ability to choose between plural and single table suffix (ex. things_lls vs thing_lls)
Based on dimsav/laravel-translatable.
But I was too lazy to create the same model for every translatable thing so I rewrote
this package almost completely.