0
votes

I tried to run php artisan migrate but I'm getting an error:

In Connection.php line 664: could not find driver (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migration) In Connector.php line 67: could not find driver.

1
Would you please share with us your .env file configurations so we can check whether it has anything to do with it?(Which is possibly the reason of why you are getting this error)Andrew Naguib
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=okeada DB_USERNAME=root DB_PASSWORD=null. That's database credentials on my .env fileWadar
Which PHP version do you use?Andrew Naguib
I'm using PHP 7.2.0Wadar
Are you sure that there is no conflict between the PHP that is used by Apache and the PHP that is linked to the command line?Andrew Naguib

1 Answers

-1
votes

you should run this command , that's because cache

composer dumpautoload