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
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,14 @@ If you want to check standalone feature then you can execute below artisan comma
67
67
68
68
<palign="center"><imgsrc="https://raw.githubusercontent.com/vcian/art/main/laravel-db-auditor/db-standard-table-report-2.png"width="100%"alt="Logo Laravel DB Auditor"></p>
69
69
70
-
70
+
---
71
+
> #### **php artisan db:track**
72
+
>
73
+
> This command give you the track of the database files. Like when it's created with how many field in which table or whom created. this type of information show in the result.
74
+
>
75
+
>
76
+
> You can also filter with --table=, --action=, --status=.
Copy file name to clipboardExpand all lines: src/Commands/DBAuditCommand.php
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@
5
5
useIlluminate\Console\Command;
6
6
useVcian\LaravelDBAuditor\Constants\Constant;
7
7
8
+
usefunctionLaravel\Prompts\select;
9
+
8
10
class DBAuditCommand extends Command
9
11
{
10
12
/**
@@ -19,15 +21,23 @@ class DBAuditCommand extends Command
19
21
*
20
22
* @var string
21
23
*/
22
-
protected$description = 'Database Audit : Check Standard and Constraint';
24
+
protected$description = 'Database Audit : Check Standard and Constraint with track';
23
25
24
26
/**
25
27
* Execute the console command.
26
-
* @return void
27
28
*/
28
29
publicfunctionhandle(): void
29
30
{
30
-
$commandSelect = $this->choice('Please Select feature which would you like to do', [Constant::STANDARD_COMMAND, Constant::CONSTRAINT_COMMAND, Constant::SUMMARY_COMMAND]);
31
+
$commandSelect = select(
32
+
label: 'Please Select feature which would you like to do',
33
+
options: [
34
+
Constant::STANDARD_COMMAND,
35
+
Constant::CONSTRAINT_COMMAND,
36
+
Constant::SUMMARY_COMMAND,
37
+
Constant::TRACK_COMMAND,
38
+
],
39
+
default: Constant::SUMMARY_COMMAND
40
+
);
31
41
32
42
if ($commandSelect === Constant::STANDARD_COMMAND) {
33
43
$this->call('db:standard');
@@ -40,5 +50,9 @@ public function handle(): void
40
50
if ($commandSelect === Constant::SUMMARY_COMMAND) {
0 commit comments