1 | <?php |
||
7 | class SyncRolesPermissionsFeatures extends Command |
||
8 | { |
||
9 | /** |
||
10 | * The name and signature of the console command. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $signature = 'tenant:sync'; |
||
15 | |||
16 | /** |
||
17 | * The console command description. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $description = 'Sync the multi-tenant roles, permissions & features'; |
||
22 | |||
23 | /** |
||
24 | * Execute the console command. |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function handle() |
||
39 | |||
40 | /** |
||
41 | * Sync the roles for the project. |
||
42 | */ |
||
43 | private function syncRoles() |
||
52 | |||
53 | /** |
||
54 | * Sync the features for the project. |
||
55 | */ |
||
56 | private function syncFeatures() |
||
62 | |||
63 | /** |
||
64 | * Sync the permissions for the project. |
||
65 | */ |
||
66 | private function syncPermissions() |
||
79 | } |
||
80 |