¨4.0.1¨
This commit is contained in:
@@ -21,6 +21,18 @@ class TranslationTranslation extends Model
|
||||
*/
|
||||
protected $fillable = ['locale', 'value'];
|
||||
|
||||
|
||||
/**
|
||||
* Clear translations cache.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function clearCache()
|
||||
{
|
||||
Cache::tags('translations')->flush();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Perform any actions required after the model boots.
|
||||
*
|
||||
@@ -32,14 +44,4 @@ class TranslationTranslation extends Model
|
||||
$translationTranslation->clearCache();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear translations cache.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function clearCache()
|
||||
{
|
||||
Cache::tags('translations')->flush();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user