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: 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