When I try to run php artisan serve
and go to http://127.0.0.1:8000/
, there was an error "IlluminateDatabaseQueryException could not find driver PRAGMA foreign_keys = ON;
. I have searched and realize this is because I haven’t install sqlite. But right now I want to use Firebase Realtime Database
. So is there any possible way to deal with this error without installing sqlite and changing to Firebase?
The error
The project structure is created by Laravel, which can be seen here
I have tried to delete the config/database.php
file but then there is a different error: array_merge(): Argument #2 must be of type array, int given
so I think I need to edit something else before deleting database.php file.
I have already configured the files to connect to Firebase Realtime Database, so no need further information about it for now.