File tree 5 files changed +31
-3
lines changed
5 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Install extends CommandInterface
12
12
protected $ description = 'Publish L5SwaggerServiceProvider provider, view and config files. ' ;
13
13
14
14
public function getAppVer () {
15
- return config ("Apis.ver " );
15
+ return config ("Apis.version " );
16
16
}
17
17
18
18
public function getAppName () {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class TestEmail extends CommandInterface {
12
12
protected $ description = 'Test email sending ' ;
13
13
14
14
public function getAppVer () {
15
- return config ("Apis.ver " );
15
+ return config ("Apis.version " );
16
16
}
17
17
18
18
public function getAppName () {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class UnInstall extends CommandInterface
11
11
protected $ description = 'Uninstall Apis an app ' ;
12
12
13
13
public function getAppVer () {
14
- return config ("Apis.ver " );
14
+ return config ("Apis.version " );
15
15
}
16
16
17
17
public function getAppName () {
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace NexaMerchant \Apis \Console \Commands ;
3
+ use Illuminate \Support \Facades \Artisan ;
4
+
5
+ use NexaMerchant \Apps \Console \Commands \CommandInterface ;
6
+
7
+ class Version extends CommandInterface
8
+
9
+ {
10
+ protected $ signature = 'Apis:Version ' ;
11
+
12
+ protected $ description = 'Version of Apis ' ;
13
+
14
+ public function getAppVer () {
15
+ return config ("Apis.version " );
16
+ }
17
+
18
+ public function getAppName () {
19
+ return config ("Apis.name " );
20
+ }
21
+
22
+ public function handle ()
23
+ {
24
+ // read the version from the config file
25
+ $ this ->info ("Version: " . $ this ->getAppVer ());
26
+ }
27
+ }
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ protected function registerCommands(): void
120
120
$ this ->commands ([
121
121
\NexaMerchant \Apis \Console \Commands \Install::class,
122
122
\NexaMerchant \Apis \Console \Commands \UnInstall::class,
123
+ \NexaMerchant \Apis \Console \Commands \Version::class,
123
124
\NexaMerchant \Apis \Console \Commands \GenerateApiDocs::class,
124
125
\NexaMerchant \Apis \Console \Commands \TestEmail::class,
125
126
]);
You can’t perform that action at this time.
0 commit comments