@@ 116-123 (lines=8) @@ | ||
113 | * |
|
114 | * @return \Illuminate\Http\Response |
|
115 | */ |
|
116 | public function destroy($id) |
|
117 | { |
|
118 | $this->authorize('delete_permission'); |
|
119 | Permissions::where('id', $id)->delete(); |
|
120 | session()->flash('message', 'Permission Deleted Successfully'); |
|
121 | session()->flash('message-status', 'alert-info'); |
|
122 | return redirect()->route('RoleManager::permission.index'); |
|
123 | } |
|
124 | } |
|
125 |
@@ 131-139 (lines=9) @@ | ||
128 | * |
|
129 | * @return \Illuminate\Http\Response |
|
130 | */ |
|
131 | public function destroy($id) |
|
132 | { |
|
133 | $this->authorize('delete_role'); |
|
134 | ||
135 | Roles::where('id', $id)->delete(); |
|
136 | session()->flash('message', 'Role Deleted Successfully'); |
|
137 | session()->flash('message-status', 'alert-info'); |
|
138 | return redirect()->route('RoleManager::role.index'); |
|
139 | } |
|
140 | } |
|
141 |