You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,9 @@ Checks that the database connection can be established, via the PDO, and that th
90
90
91
91
Checks that Redis connection can be established, and that the required config keys are set.
92
92
93
-
(No options)
93
+
| Option | Description |
94
+
| --- | --- |
95
+
| `connection` | The name of the connection in `config/database.php` |)
94
96
95
97
### Configuration
96
98
@@ -110,6 +112,20 @@ The accepted options for the `Configuration` preflight check is a list of config
110
112
]
111
113
```
112
114
115
+
You may also pass a hint (recommended for local development only) that will be shown if the key is not set. For example:
116
+
117
+
```php
118
+
'local' => [
119
+
Configuration::class => [
120
+
'services.payment.key' => 'In dashboard as "Super Secret API Token Key Thing"',
121
+
'services.mail.key',
122
+
// ...
123
+
]
124
+
]
125
+
```
126
+
127
+
When a new dev sets up their environment and is missing that config value, they will get that nice friendly message helping them find the key.
128
+
113
129
### Write Your Own!
114
130
115
131
If you have a special startup consideration you'd like to make, feel free write your own check, extending `Kirschbaum\PreflightChecks\Checks\PreflightCheck`.
0 commit comments