Optimize for SQLite by default
This commit is contained in:
parent
710326e479
commit
904703a37e
|
@ -6,12 +6,7 @@ APP_URL=http://localhost
|
||||||
|
|
||||||
LOG_CHANNEL=stack
|
LOG_CHANNEL=stack
|
||||||
|
|
||||||
DB_CONNECTION=mysql
|
DB_CONNECTION=sqlite
|
||||||
DB_HOST=127.0.0.1
|
|
||||||
DB_PORT=3306
|
|
||||||
DB_DATABASE=homestead
|
|
||||||
DB_USERNAME=homestead
|
|
||||||
DB_PASSWORD=secret
|
|
||||||
|
|
||||||
BROADCAST_DRIVER=log
|
BROADCAST_DRIVER=log
|
||||||
CACHE_DRIVER=file
|
CACHE_DRIVER=file
|
||||||
|
|
11
readme.md
11
readme.md
|
@ -41,15 +41,10 @@ Generate application key:
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
```
|
```
|
||||||
|
|
||||||
Setup local database by editing `.env`. Use whatever database (MySQL, Postgres, SQLite) you'd like here.
|
Create an SQLite database. You can also use another database (MySQL, Postgres), simply update your configuration accordingly.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
DB_CONNECTION=
|
touch database/database.sqlite
|
||||||
DB_HOST=
|
|
||||||
DB_PORT=
|
|
||||||
DB_DATABASE=
|
|
||||||
DB_USERNAME=
|
|
||||||
DB_PASSWORD=
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Run database migrations:
|
Run database migrations:
|
||||||
|
|
Loading…
Reference in New Issue