Merge pull request #2029 from jitendra-webkul/1.0

Eager loaded translations for country and country state models
This commit is contained in:
Jitendra Singh 2020-01-10 17:51:34 +05:30 committed by GitHub
commit 33cf52f7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -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'];
}

View File

@ -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'];
}