Exemplo n.º 1
0
 /**
  * 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()]);
 }