Merge pull request #2029 from jitendra-webkul/1.0
Eager loaded translations for country and country state models
This commit is contained in:
commit
33cf52f7f0
|
|
@ -7,7 +7,9 @@ use Webkul\Core\Contracts\Country as CountryContract;
|
|||
|
||||
class Country extends TranslatableModel implements CountryContract
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
public $translatedAttributes = ['name'];
|
||||
|
||||
public $timestamps = false;
|
||||
protected $with = ['translations'];
|
||||
}
|
||||
|
|
@ -8,7 +8,9 @@ use Webkul\Core\Contracts\CountryState as CountryStateContract;
|
|||
|
||||
class CountryState extends TranslatableModel implements CountryStateContract
|
||||
{
|
||||
public $translatedAttributes = ['name'];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public $translatedAttributes = ['name'];
|
||||
|
||||
protected $with = ['translations'];
|
||||
}
|
||||
Loading…
Reference in New Issue