I have cloned my old (still up to date) Laravel project from github. Installed composer and npm and then ran npm run dev
. After that I have created database and configured .env file as well as key with php artisan key:generate
. It looks like this now: https://prnt.sc/wjv1aw
For some reason I got this error (I have never before encountered it): https://prnt.sc/wjv1yn
And this is the part from .env file:
APP_NAME=Laravel
APP_ENV=local
APP_KEY=ba...EI=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db_blogproject
DB_USERNAME=root
DB_PASSWORD=
Solution for me was on this topic: Laravel 5 PDOException Could Not Find Driver
question from:https://stackoverflow.com/questions/65645987/laravel-could-not-find-driver