Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

santigarcor's avatar

Sql server 'could not find driver'

Hi people,

I'm having a problem with the sqlsrv driver, i use Ubuntu16.04 and i've been searching about that but i couldn't find an answer.

I hope someone can help me with this. Thank you!

0 likes
4 replies
sidscorner's avatar

SQL Server Configuration

Laravel supports SQL Server out of the box; however, you will need to add the connection configuration for the database:

'sqlsrv' => [
    'driver' => 'sqlsrv',
    'host' => env('DB_HOST', 'localhost'),
    'database' => env('DB_DATABASE', 'forge'),
    'username' => env('DB_USERNAME', 'forge'),
    'password' => env('DB_PASSWORD', ''),
    'charset' => 'utf8',
    'prefix' => '',
],

Please or to participate in this conversation.