public function edit(User $user, Role $role)
    {
        $this->authorize(UsersPolicy::PERMISSION_UPDATE);

        $user->load(['roles', 'roles.permissions']);
        $roles = $role->all();

        $this->setTitle($title = trans('auth::users.titles.edit-user'));
        $this->addBreadcrumb($title);

        return $this->view('admin.users.edit', compact('user', 'roles'));
    }
public function edit(User $user, Role $role)
    {
        $this->authorize(UsersPolicy::PERMISSION_UPDATE);

        $user->load(['roles', 'roles.permissions']);
        $roles = $role->all();

        $this->setTitle($title = trans('auth::users.titles.edit-user'));
        $this->addBreadcrumb($title);

        return $this->view('admin.users.edit', compact('user', 'roles'));
    }
public function edit ( User $ user , Role $ role ) { $ this -> authorize ( UsersPolicy :: PERMISSION_UPDATE ) ; $ user -> load ( [ 'roles' , 'roles.permissions' ] ) ; $ roles = $ role -> all ( ) ; $ this -> setTitle ( $ title = trans ( 'auth::users.titles.edit-user' ) ) ; $ this -> addBreadcrumb ( $ title ) ; return $ this -> view ( 'admin.users.edit' , compact ( 'user' , 'roles' ) ) ; }
Show the edit the user form.

@param  \Arcanesoft\Contracts\Auth\Models\User  $user
@param  \Arcanesoft\Contracts\Auth\Models\Role  $role

@return \Illuminate\View\View
Show the edit the user form .