Lightszentip / Setup Laravel to use sqlite

Created Sun, 11 Dec 2022 00:00:00 +0000 Modified Sat, 07 Sep 2024 22:07:08 +0000
33 Words

Setup Laravel to use sqlite

Setup .env

Open the .env file and change the following settings:

DB_CONNECTION=sqlite
DB_DATABASE=database/database.sqlite

and set

SESSION_DRIVER=file

to file.

After this run php artisan migrate and php artisan serve