Skip to content

Commit

Permalink
Add Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony BOTALLA committed May 3, 2023
1 parent 886964f commit 1804d3e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ php artisan db:create --connection=[connection]

For instance, `php artisan db:create --connection=mysql` will call `config('database.connections.mysql')` to get driver, host, database name, etc.

#### `db:get-name`

This command print the database name for a given connection (or the current connection if not specified) :

```
php artisan db:get-name
php artisan db:get-name --connection=dev
```

`[connection]` have to be a valid connection, defined into `config/database.php` configuration file.


## Testing

Expand Down

0 comments on commit 1804d3e

Please sign in to comment.