public function update(User $administrator, Request $request)
    {
        $this->validate($request, [
            'firstname' => 'required',
            'lastname'  => 'required',
            'roles'     => 'required|array',
        ]);

        $this->updateEntry($administrator, $request->only([
            'firstname',
            'lastname',
            'cellphone',
            'telephone',
            'born_at'
        ]));

        $administrator->roles()->sync(input('roles'));

        return redirect_to_resource();
    }
public function update(User $administrator, Request $request)
    {
        $this->validate($request, [
            'firstname' => 'required',
            'lastname'  => 'required',
            'roles'     => 'required|array',
        ]);

        $this->updateEntry($administrator, $request->only([
            'firstname',
            'lastname',
            'cellphone',
            'telephone',
            'born_at'
        ]));

        $administrator->roles()->sync(input('roles'));

        return redirect_to_resource();
    }
public function update ( User $ administrator , Request $ request ) { $ this -> validate ( $ request , [ 'firstname' => 'required' , 'lastname' => 'required' , 'roles' => 'required|array' , ] ) ; $ this -> updateEntry ( $ administrator , $ request -> only ( [ 'firstname' , 'lastname' , 'cellphone' , 'telephone' , 'born_at' ] ) ) ; $ administrator -> roles ( ) -> sync ( input ( 'roles' ) ) ; return redirect_to_resource ( ) ; }
Update the specified faq in storage.
@param User    $administrator
@param Request $request
@return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
Update the specified faq in storage .