We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 39-54 (lines=16) @@ | ||
36 | } |
|
37 | } |
|
38 | ||
39 | public function setupListOperation() |
|
40 | { |
|
41 | $this->crud->addColumn([ |
|
42 | 'name' => 'name', |
|
43 | 'label' => trans('backpack::permissionmanager.name'), |
|
44 | 'type' => 'text', |
|
45 | ]); |
|
46 | ||
47 | if (config('backpack.permissionmanager.multiple_guards')) { |
|
48 | $this->crud->addColumn([ |
|
49 | 'name' => 'guard_name', |
|
50 | 'label' => trans('backpack::permissionmanager.guard_type'), |
|
51 | 'type' => 'text', |
|
52 | ]); |
|
53 | } |
|
54 | } |
|
55 | ||
56 | public function setupCreateOperation() |
|
57 | { |
|
@@ 74-90 (lines=17) @@ | ||
71 | \Cache::forget('spatie.permission.cache'); |
|
72 | } |
|
73 | ||
74 | private function addFields() |
|
75 | { |
|
76 | $this->crud->addField([ |
|
77 | 'name' => 'name', |
|
78 | 'label' => trans('backpack::permissionmanager.name'), |
|
79 | 'type' => 'text', |
|
80 | ]); |
|
81 | ||
82 | if (config('backpack.permissionmanager.multiple_guards')) { |
|
83 | $this->crud->addField([ |
|
84 | 'name' => 'guard_name', |
|
85 | 'label' => trans('backpack::permissionmanager.guard_type'), |
|
86 | 'type' => 'select_from_array', |
|
87 | 'options' => $this->getGuardTypes(), |
|
88 | ]); |
|
89 | } |
|
90 | } |
|
91 | ||
92 | /* |
|
93 | * Get an array list of all available guard types |