Replies: 2 comments
-
The same problem.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I added a workaround for this but translations does not load from DB if you're running unit tests or artisan commands. if ($this->app->runningUnitTests() || $this->app->runningInConsole()) {
$this->app->register(\Illuminate\Translation\TranslationServiceProvider::class);
} else {
$this->app->register(\Spatie\TranslationLoader\TranslationServiceProvider::class);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Laravel: 8.54
spatie/laravel-translation-loader: 2.7
During package installation an exception gets thrown about missing
language_lines
table before we can even publish migration files:This breaks all artisan commands.
Workaround is to manually get the migration file from repository and migrate it before installing this package.
This also means every time you make a fresh setup of a project using this package you need to either have already imported database which has
language_lines
table or remove this package, comment out provider, migrate and then install it again.Related to: #130, #123
Beta Was this translation helpful? Give feedback.
All reactions