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