public function update(Redirect $redirect, UpdateRedirectRequest $request)
    {
        $this->authorize(RedirectsPolicy::PERMISSION_UPDATE);

        $redirect->update($request->getValidatedData());

        $this->transNotification('updated', [], $redirect->toArray());

        return redirect()->route('admin::seo.redirects.show', [$redirect]);
    }
public function update(Redirect $redirect, UpdateRedirectRequest $request)
    {
        $this->authorize(RedirectsPolicy::PERMISSION_UPDATE);

        $redirect->update($request->getValidatedData());

        $this->transNotification('updated', [], $redirect->toArray());

        return redirect()->route('admin::seo.redirects.show', [$redirect]);
    }
public function update ( Redirect $ redirect , UpdateRedirectRequest $ request ) { $ this -> authorize ( RedirectsPolicy :: PERMISSION_UPDATE ) ; $ redirect -> update ( $ request -> getValidatedData ( ) ) ; $ this -> transNotification ( 'updated' , [ ] , $ redirect -> toArray ( ) ) ; return redirect ( ) -> route ( 'admin::seo.redirects.show' , [ $ redirect ] ) ; }
Update the redirect.

@param  \Arcanesoft\Seo\Models\Redirect                                      $redirect
@param  \Arcanesoft\Seo\Http\Requests\Admin\Redirects\UpdateRedirectRequest  $request

@return \Illuminate\Http\RedirectResponse
Update the redirect .