close

[Solved] could not find driver in laravel

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error could not find driver in laravel in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How could not find driver in laravel Error Occurs?

Today I get the following error could not find driver in laravel in php.

How To Solve could not find driver in laravel Error ?

  1. How To Solve could not find driver in laravel Error ?

    To Solve could not find driver in laravel Error I have tried the following command on Ubuntu and its working for me sudo apt-get install php7.0-mysql

  2. could not find driver in laravel

    To Solve could not find driver in laravel Error I have tried the following command on Ubuntu and its working for me sudo apt-get install php7.0-mysql

Solution 1

sudo apt-get update

For Mysql Database

sudo apt-get install php-mysql

For PostgreSQL Database

sudo apt-get install php-pgsql

Then

php artisan migrate

Solution 2

I have tried the following command on Ubuntu and its working for me sudo apt-get install php7.0-mysql

Thanks

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment