public function store(CreateRedirectRequest $request)
    {
        $this->authorize(RedirectsPolicy::PERMISSION_CREATE);

        $redirect = Redirect::createRedirect(
            $request->getValidatedData()
        );

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

        return redirect()->route('admin::seo.redirects.show', [$redirect]);
    }
public function store(CreateRedirectRequest $request)
    {
        $this->authorize(RedirectsPolicy::PERMISSION_CREATE);

        $redirect = Redirect::createRedirect(
            $request->getValidatedData()
        );

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

        return redirect()->route('admin::seo.redirects.show', [$redirect]);
    }
public function store ( CreateRedirectRequest $ request ) { $ this -> authorize ( RedirectsPolicy :: PERMISSION_CREATE ) ; $ redirect = Redirect :: createRedirect ( $ request -> getValidatedData ( ) ) ; $ this -> transNotification ( 'created' , [ ] , $ redirect -> toArray ( ) ) ; return redirect ( ) -> route ( 'admin::seo.redirects.show' , [ $ redirect ] ) ; }
Store the new redirect.

@param  \Arcanesoft\Seo\Http\Requests\Admin\Redirects\CreateRedirectRequest  $request

@return \Illuminate\Http\RedirectResponse
Store the new redirect .