File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 11
11
- [ Launch Artisan command from anywhere] ( #launch-artisan-command-from-anywhere )
12
12
- [ Hide your custom command] ( #hide-your-custom-command )
13
13
- [ Skip method] ( #skip-method )
14
+ - [ Connect to database via CLI] ( #connect-to-database-via-cli )
14
15
15
16
### Artisan command parameters
16
17
@@ -172,3 +173,18 @@ $schedule->command('emails:send')->daily()->skip(function () {
172
173
173
174
Tip given by [ @cosmeescobedo ] ( https://twitter.com/cosmeescobedo/status/1494503181438492675 )
174
175
176
+ ### Connect to database via CLI
177
+
178
+ To get access to your database via CLI directly, you can run the following without any parameters:
179
+
180
+ ``` bash
181
+ php artisan db
182
+ ```
183
+
184
+ If you are using multiple databases, you may specify a database connection name like:
185
+
186
+ ``` bash
187
+ php artisan db mysql
188
+ ```
189
+
190
+ This command is absent from the list generated by executing ` php artisan list ` .
You can’t perform that action at this time.
0 commit comments