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
I am studying this package and seems to corresponds perfectly to my needs but the only inconvenience is when I delete a local from my application how i can delete it in all the models in an efficient way.
$local = Locale:findByCode('nl')->delete();
Then search in all model and delete the languages :
$model1->forgetAllTranslations('nl'); ---> eloquent model 1
$model2->forgetAllTranslations('nl');---> eloquent model 2
$model3->forgetAllTranslations('nl');---> eloquent model 3
$model4->forgetAllTranslations('nl');---> eloquent model 4
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am studying this package and seems to corresponds perfectly to my needs but the only inconvenience is when I delete a local from my application how i can delete it in all the models in an efficient way.
$local = Locale:findByCode('nl')->delete();
Then search in all model and delete the languages :
there is any idea how to handle this use case ?
Beta Was this translation helpful? Give feedback.
All reactions