/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $this->roles->destroy($id);
     return redirect()->route('admin.auth.role.index')->withSuccess(trans('alerts.users.deleted'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $permission = $this->permissions->find($id);
     return view('backend.permission.edit', ['permission' => $permission, 'roles' => $this->roles->all(), 'permissionRoles' => $permission->roles->pluck('id')->all()]);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\View\View
  */
 public function edit($id)
 {
     $user = $this->users->find($id);
     return view('backend.user.edit', ['user' => $user, 'userRoles' => $user->roles->pluck('id')->all(), 'roles' => $this->roles->all()]);
 }