Skip to content

Commit cd0146c

Browse files
authored
Merge pull request #138 from ModulesSoft/artisan
Update artisan.md
2 parents 043af76 + 9d2d3cb commit cd0146c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

artisan.md

Lines changed: 16 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 via CLI](#connect-to-database-via-cli)
1415

1516
### Artisan command parameters
1617

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

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

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`.

0 commit comments

Comments
 (0)