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
+48-14Lines changed: 48 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,66 @@
1
-
# Very short description of the package
1
+

2
2
3
-
[](https://packagist.org/packages/laratoolbox/databaseviewer)
[](https://packagist.org/packages/laratoolbox/database-viewer)
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
8
+
This package adds commands for getting table / column info into artisan cli.
9
9
10
10
## Installation
11
11
12
12
You can install the package via composer:
13
13
14
14
```bash
15
-
composer require laratoolbox/databaseviewer
15
+
$ composer require laratoolbox/database-viewer
16
16
```
17
17
18
18
## Usage
19
19
20
-
```php
21
-
// Usage description here
20
+
* Get tables
21
+
```shell
22
+
$ php artisan db:tables
23
+
24
+
failed_jobs
25
+
migrations
26
+
password_resets
27
+
users
28
+
```
29
+
30
+
* Get columns for a specific table
31
+
```shell
32
+
$ php artisan db:columns --table=users
33
+
34
+
id
35
+
name
36
+
email
37
+
email_verified_at
38
+
password
39
+
remember_token
40
+
created_at
41
+
updated_at
42
+
```
43
+
44
+
* Get columns for a specific table as doc block formatted
0 commit comments