Cache contacts
This commit is contained in:
parent
48b5f39b14
commit
d71ea9ee67
|
|
@ -217,6 +217,9 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||
{
|
||||
$languages = Cache::get('languages');
|
||||
|
||||
if(!$languages)
|
||||
$this->buildCache(true);
|
||||
|
||||
return $languages->filter(function ($item) {
|
||||
return $item->id == $this->client->getSetting('language_id');
|
||||
})->first()->locale;
|
||||
|
|
|
|||
Loading…
Reference in New Issue