1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Adminetic\Website\Console\Commands; |
4
|
|
|
|
5
|
|
|
use Illuminate\Console\Command; |
6
|
|
|
use Illuminate\Support\Facades\Artisan; |
7
|
|
|
|
8
|
|
|
class AdmineticWebsitePermissionCommand extends Command |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* The name and signature of the console command. |
12
|
|
|
* |
13
|
|
|
* @var string |
14
|
|
|
*/ |
15
|
|
|
protected $signature = 'adminetic:website-permission'; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* The console command description. |
19
|
|
|
* |
20
|
|
|
* @var string |
21
|
|
|
*/ |
22
|
|
|
protected $description = 'Command to create website module permission flags.'; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* Create a new command instance. |
26
|
|
|
* |
27
|
|
|
* @return void |
28
|
|
|
*/ |
29
|
|
|
public function __construct() |
30
|
|
|
{ |
31
|
|
|
parent::__construct(); |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Execute the console command. |
36
|
|
|
* |
37
|
|
|
* @return int |
38
|
|
|
*/ |
39
|
|
|
public function handle() |
40
|
|
|
{ |
41
|
|
|
Artisan::call('make:permission Category --all'); |
42
|
|
|
$this->info('Category Module Permission Created ... ✅'); |
43
|
|
|
Artisan::call('make:permission Client --all'); |
44
|
|
|
$this->info('Client Module Permission Created ... ✅'); |
45
|
|
|
Artisan::call('make:permission Counter --all'); |
46
|
|
|
$this->info('Counter Module Permission Created ... ✅'); |
47
|
|
|
Artisan::call('make:permission Coupon --all'); |
48
|
|
|
$this->info('Coupon Module Permission Created ... ✅'); |
49
|
|
|
Artisan::call('make:permission Download --all'); |
50
|
|
|
$this->info('Download Module Permission Created ... ✅'); |
51
|
|
|
Artisan::call('make:permission Event --all'); |
52
|
|
|
$this->info('Event Module Permission Created ... ✅'); |
53
|
|
|
Artisan::call('make:permission Facility --all'); |
54
|
|
|
$this->info('Facility Module Permission Created ... ✅'); |
55
|
|
|
Artisan::call('make:permission Faq --all'); |
56
|
|
|
$this->info('Faq Module Permission Created ... ✅'); |
57
|
|
|
Artisan::call('make:permission Feature --all'); |
58
|
|
|
$this->info('Feature Module Permission Created ... ✅'); |
59
|
|
|
Artisan::call('make:permission Gallery --all'); |
60
|
|
|
$this->info('Gallery Module Permission Created ... ✅'); |
61
|
|
|
Artisan::call('make:permission Guest --all'); |
62
|
|
|
$this->info('Guest Module Permission Created ... ✅'); |
63
|
|
|
Artisan::call('make:permission Notice --all'); |
64
|
|
|
$this->info('Notice Module Permission Created ... ✅'); |
65
|
|
|
Artisan::call('make:permission Package --all'); |
66
|
|
|
$this->info('Package Module Permission Created ... ✅'); |
67
|
|
|
Artisan::call('make:permission Page --all'); |
68
|
|
|
$this->info('Page Module Permission Created ... ✅'); |
69
|
|
|
Artisan::call('make:permission Pass --all'); |
70
|
|
|
$this->info('Pass Module Permission Created ... ✅'); |
71
|
|
|
Artisan::call('make:permission Popup --all'); |
72
|
|
|
$this->info('Popup Module Permission Created ... ✅'); |
73
|
|
|
Artisan::call('make:permission Project --all'); |
74
|
|
|
$this->info('Project Module Permission Created ... ✅'); |
75
|
|
|
Artisan::call('make:permission Service --all'); |
76
|
|
|
$this->info('Service Module Permission Created ... ✅'); |
77
|
|
|
Artisan::call('make:permission Team --all'); |
78
|
|
|
$this->info('Team Module Permission Created ... ✅'); |
79
|
|
|
Artisan::call('make:permission Testimonial --all'); |
80
|
|
|
$this->info('Testimonial Module Permission Created ... ✅'); |
81
|
|
|
Artisan::call('make:permission Ticket --all'); |
82
|
|
|
$this->info('Ticket Module Permission Created ... ✅'); |
83
|
|
|
Artisan::call('make:permission Payment --all'); |
84
|
|
|
$this->info('Payment Module Permission Created ... ✅'); |
85
|
|
|
Artisan::call('make:permission Post --all'); |
86
|
|
|
$this->info('Post Module Permission Created ... ✅'); |
87
|
|
|
Artisan::call('make:permission Application --all'); |
88
|
|
|
$this->info('Application Module Permission Created ... ✅'); |
89
|
|
|
Artisan::call('make:permission Career --all'); |
90
|
|
|
$this->info('Career Module Permission Created ... ✅'); |
91
|
|
|
Artisan::call('make:permission Attribute --all'); |
92
|
|
|
$this->info('Attribute Module Permission Created ... ✅'); |
93
|
|
|
Artisan::call('make:permission Product --all'); |
94
|
|
|
$this->info('Product Module Permission Created ... ✅'); |
95
|
|
|
Artisan::call('make:permission Process --all'); |
96
|
|
|
$this->info('Process Module Permission Created ... ✅'); |
97
|
|
|
Artisan::call('make:permission Software --all'); |
98
|
|
|
$this->info('Software Module Permission Created ... ✅'); |
99
|
|
|
Artisan::call('make:permission Slider --all'); |
100
|
|
|
$this->info('Slider Module Permission Created ... ✅'); |
101
|
|
|
Artisan::call('make:permission About --all'); |
102
|
|
|
$this->info('About Module Permission Created ... ✅'); |
103
|
|
|
Artisan::call('make:permission History --all'); |
104
|
|
|
$this->info('History Module Permission Created ... ✅'); |
105
|
|
|
} |
106
|
|
|
} |
107
|
|
|
|