© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
1 reply
varovas

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())
)
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Spatie Translatable plugin
FilamentFFilament / ❓┊help
3y ago
Install Spatie Translatable Plugin
FilamentFFilament / ❓┊help
3y ago
Filament Spatie Translatable Issue
FilamentFFilament / ❓┊help
3y ago
Spatie translatable Plugin - repeater field
FilamentFFilament / ❓┊help
3y ago