Skip to content

Instantly share code, notes, and snippets.

@AzadGh95
Created December 1, 2022 08:54
Show Gist options
  • Save AzadGh95/1efca9edddc05890da2daf1197b6ec2c to your computer and use it in GitHub Desktop.
Save AzadGh95/1efca9edddc05890da2daf1197b6ec2c to your computer and use it in GitHub Desktop.
Best database when you are developing your laravel project.

I wanna have a stable database so I'd rather using sqlite instead other database when I'm developing my Laravel project.

Step 1: change these line in .env

DB_CONNECTION=sqlite
# DB_HOST=pgsql
# DB_PORT=5432
# DB_DATABASE=example
# DB_USERNAME=sail
# DB_PASSWORD=password

Step 2: and create a new file, named database.sqlite in your database folder in project.

Step 3: and then install a sqlitebrowser to see data.

sudo apt install sqlitebrowser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment