php - Microsoft SQL Server with Laravel 5 -
i've pushed laravel application ubuntu 16.04 vps - company using sql server record management - , cannot laravel connect database authentication or else.
i'm getting errors laravel cannot find drivers connect.
i've searched in many places.
there's no tutorial shows start finish, they're using different packages , it's overwhelming.
has here connected laravel application (running on ubuntu) sql server?
i have managed using below configuration (on windows):
in .env file
db_connection=sqlsrv db_host=hots db_port=1433 db_database=dbname db_username=user db_password=password
database.php
'default' => env('db_connection', 'sqlsrv'),
and in connections
'sqlsrv' => [ 'driver' => 'sqlsrv', 'host' => env('db_host', ''), 'port' => env('db_port', '1433'), // note port 'database' => env('db_database', ''), 'username' => env('db_username', ''), 'password' => env('db_password', ''), 'prefix' => '', ],
Comments
Post a Comment