File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ LOG_STACK=single
19
19
LOG_DEPRECATIONS_CHANNEL = null
20
20
LOG_LEVEL = debug
21
21
22
- DB_CONNECTION = sqlite
23
- # DB_HOST=127.0.0.1
24
- # DB_PORT=3306
25
- # DB_DATABASE=laravel
26
- # DB_USERNAME=root
27
- # DB_PASSWORD=
22
+ DB_CONNECTION = mysql
23
+ DB_HOST = laravel_db
24
+ DB_PORT = 3306
25
+ DB_DATABASE = laravel
26
+ DB_USERNAME = root
27
+ DB_PASSWORD = secret
28
28
29
29
SESSION_DRIVER = database
30
30
SESSION_LIFETIME = 120
Original file line number Diff line number Diff line change @@ -47,8 +47,15 @@ This repository provides an example of how to set up a Laravel application with
47
47
``` sh
48
48
docker compose up
49
49
```
50
+ 5 . ** Generate Laravel Application Key**
50
51
51
- 5 . ** Run Migrations**
52
+ Generate Laravel Application Key
53
+
54
+ ``` sh
55
+ docker compose exec app php artisan key:generate
56
+ ```
57
+
58
+ 6 . ** Run Migrations**
52
59
53
60
Run the Laravel migrations to set up the database schema.
54
61
You can’t perform that action at this time.
0 commit comments