Can't publish migration file #130
alexaf2000
started this conversation in
General
Replies: 1 comment
-
Hi, I have a similar error in laravel 8. composer require spatie/laravel-translation-loader It shows me the same error : ...
Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Illuminate\Database\QueryException
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database.language_lines' doesn't exist (SQL: select * from `language_lines` where `group` = *)
... To fix it i had to remove manually from composer.json the this pakage and deleting composer.lock. A way to fix it is to run in the composer.json of the package the migration ,if is not done yet, and after that contine. |
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
-
Hi! I have been found an error with the library.
After do the "composer require ...", the next thing you want to do is publish the migration file to have the new table required by the library, but which is the issue here? The issue is that if you try to execute ANY "php artisan" command, the Laravel Translation Loader service checks and find that the project doesn't have the desired table. But if artisan commands doesn't work you simply can't publish the migration file and execute-it.
This is the error that is returned with every aritsan command and even the publish command:
Beta Was this translation helpful? Give feedback.
All reactions