New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error could not find driver #7
Comments
So I found it was a missing PHP extension
|
Thanks for reporting this. I think it will make sense to show better error reporting, if Sqlite is not installed/enabled. |
I just want to come back on this, but for this part : "Also when I publish the config and I do not change anything and I try to run the command php artisan db:seed countries:build I got" That error is not related to a missing extension ( Target class [Database\Seeders\countries:build] does not exist. ), but to the fact that the command in README is not valid : Artisan just thinks countries:build is the seeder, instead of correctly running this as a second command ! Doing @io238 could you change the README please 🥺 |
So I have run this command
composer require io238/laravel-iso-countries
and after that I just tried to callCountry::find("pt")
, andI got could not find driver (Connection: iso-countries, SQL: select * from \"countries\")
I have a connection to MySQL database on .env, Am I missing something?
Also when I publish the config and I do not change anything and I try to run the command
php artisan db:seed countries:build
I gotPHP version: 8.1.10
Laravel Framework 10.33.0
The text was updated successfully, but these errors were encountered: