You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 18, 2019. It is now read-only.
In this guide you will find descriptions about how to update from a major version of the package to another.
From 5.* to 6.*
In versions prior to 6, to define a translation as fillable you had to define the fillable fields in both Country and CountryTranslation. This is no longer a requirement.
Before
class Country extends Eloquent {
use \Dimsav\Translatable\Translatable;
public$translatedAttributes = array('name');
protected$fillable = ['code', 'name'];
}
class CountryTranslation extends Eloquent {
protected$fillable = ['name'];
}
After
class Country extends Eloquent {
use \Dimsav\Translatable\Translatable;
public$translatedAttributes = array('name');
protected$fillable = ['code'];
}
class CountryTranslation extends Eloquent {
protected$fillable = ['name'];
}