Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $permissions = $this->role->permission();
     //获取所有权限许可
     return view('back.permission.index', compact('permissions'));
 }
Пример #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $this->role->destroy($id);
     return redirect()->route('admin.role.index')->with('message', '删除角色成功!');
 }