I've eventually made my connection with mysql instead of mssql because it was not working (I'm working with laravel). But now it's still not working. I receive the error:
SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected (SQL: create table `users` (`id` int unsigned not null auto_increment primary key, `username` varchar(32) not null, `email` varchar(320) not null, `password` varchar(60) not null, `created_at` timestamp default 0 not null, `updated_at` timestamp default 0 not null) default character set utf8 collate utf8_unicode_ci)
I'm connection to my localhost with a wamp server. This is my code:
> 'mysql' => [
> 'driver' => 'mysql',
> 'host' => env('localhost'),
> 'database' => env('test'),
> 'username' => env('root'),
> 'password' => env(''),
> 'charset' => 'utf8',
> 'collation' => 'utf8_unicode_ci',
> 'prefix' => '',
> 'strict' => false,
> ],
And my env :
'default' => env('mysql', 'mysql'),
EDIT
.env:
DB_HOST=localhost
DB_DATABASE=test
DB_USERNAME=root
DB_PASSWORD=