Spatie translatable plugin issue or not

How to pass default locales from a database? Although, code below works, but it breaks the application when you try to run for example php artisan migrate on a fresh database.
->plugin(
SpatieLaravelTranslatablePlugin::make()
->defaultLocales(Language::all()->pluck('code')->toArray())
)
->plugin(
SpatieLaravelTranslatablePlugin::make()
->defaultLocales(Language::all()->pluck('code')->toArray())
)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?