Skip to content

Instantly share code, notes, and snippets.

@IlijaT
Last active June 22, 2021 20:07
Show Gist options
  • Save IlijaT/49c3e6e24ae145c8ab3900d715ea67ce to your computer and use it in GitHub Desktop.
Save IlijaT/49c3e6e24ae145c8ab3900d715ea67ce to your computer and use it in GitHub Desktop.
Laravel quick start with sqlite

Laravel quick start with sqlite

  • install new Laravel project:
composer create-project --prefer-dist laravel/laravel project-name
  • .env change DB connection:
- DB_CONNECTION=mysql
+ DB_CONNECTION=sqlite
  • .env remove other DB parameters:
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=nonstopoglasi
- DB_USERNAME=root
- DB_PASSWORD=
  • terminal:
cd project-name
touch database/database.sqlite
php artisan migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment