I want to make a migration to database.sqlite, but i get the following error while trying to execute a migration:
'default' => env('DB_CONNECTION', 'database.sqlite'), DB_CONNECTION=sqlite REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379
And the database.sqlite file has a text file type.
I am using ubuntu 16.04lts and phpstorm.
The problem is fixed, i was editing example.env not the real env file, and also, on the database.php file, i had
‘default’ => env(‘DB_CONNECTION’, ‘database.sqlite’),
and changed it to:
default’ => database_path(‘database.sqlite’).
I just don’t know why laravel sets it up as the first one.