Skip to content

Commit a4ac646

Browse files
authored
Update artisan.md
Add Connect to database CLI tip
1 parent 043af76 commit a4ac646

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

artisan.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [Launch Artisan command from anywhere](#launch-artisan-command-from-anywhere)
1212
- [Hide your custom command](#hide-your-custom-command)
1313
- [Skip method](#skip-method)
14+
- [Connect to database CLI](#connect-to-database-cli)
1415

1516
### Artisan command parameters
1617

@@ -172,3 +173,13 @@ $schedule->command('emails:send')->daily()->skip(function () {
172173

173174
Tip given by [@cosmeescobedo](https://twitter.com/cosmeescobedo/status/1494503181438492675)
174175

176+
### Connect to database CLI
177+
To get access to your database CLI directly, you can run the following without any parameters:
178+
```bash
179+
php artisan db
180+
```
181+
If you are using multiple databases, you may specify a database connection name like:
182+
```bash
183+
php artisan db mysql
184+
```
185+
This command is absent from the list generated by executing php artisan list.

0 commit comments

Comments
 (0)