InvalidArgumentException in SQLiteConnector.php line 34: Database (homestead) does not exist
Under that line referenced in your error, is the following:
// Here we'll verify that the SQLite database exists before going any further // as the developer probably wants to know if the database exists and this // SQLite driver will not throw any exception if it does not by default. if ($path === false) { throw new InvalidArgumentException("Database (${config['database']}) does not exist."); }
Looking at the comment above the method, it seems that your path is not correctly set. I believe the correct environment variable should be:
DB_DATABASE=database/database.sqlite
instead of
DB_FILE=database/database.sqlite
If not, check your config/database.php
file, and look for this section:
'sqlite' => [ 'driver' => 'sqlite', 'database' => env('DB_DATABASE', database_path('database.sqlite')), // this line! 'prefix' => '', ],
I just noticed also (at least in Laravel version 5.2.29 on a mac) the path must be an absolute path. The weird thing is, for running migrations a relative path will work but the application then fails when trying to access the DB after that