Error connecting to sqlite in laravel

1

Internally everyone is working, migrations , tinker , sqlite3 , but in the server application it always queries mysql instead of sqlite for all operations, ie it is using Connector.php instead of% with%

Is there another type of configuration to connect with SQLiteConnector.php ?

.env

DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=./database/database.sqlite
#DB_USERNAME=homestead
#DB_PASSWORD=secret

database.php

'connections' => [

        'sqlite' => [
            'driver' => 'sqlite',
            'database' => env('DB_DATABASE', database_path('database.sqlite')),
            'prefix' => '',
        ],

Error

  

QueryException   SQLSTATE [HY000] [2002] No connection could be made because the target machine actively refused them.

    
asked by anonymous 01.03.2018 / 00:58

1 answer

0

The error was silly, it simply had 2 servers started, thus not letting the settings be reflected in the application

    
01.03.2018 / 02:04