protected function storeIntendedUrl()
    {
        // Do not store the URL if it was the login itself
        $previousUrl = url()->previous();
        $loginUrl    = url()->route($this->core->prefixRoute(NamedRoute::AUTH_LOGIN));

        if ($previousUrl == $loginUrl) return;

        session()->put('url.intended', $previousUrl);
    }
protected function storeIntendedUrl()
    {
        // Do not store the URL if it was the login itself
        $previousUrl = url()->previous();
        $loginUrl    = url()->route($this->core->prefixRoute(NamedRoute::AUTH_LOGIN));

        if ($previousUrl == $loginUrl) return;

        session()->put('url.intended', $previousUrl);
    }
protected function storeIntendedUrl ( ) { // Do not store the URL if it was the login itself $ previousUrl = url ( ) -> previous ( ) ; $ loginUrl = url ( ) -> route ( $ this -> core -> prefixRoute ( NamedRoute :: AUTH_LOGIN ) ) ; if ( $ previousUrl == $ loginUrl ) return ; session ( ) -> put ( 'url.intended' , $ previousUrl ) ; }
Stores the intended URL to redirect to after succesful login.
Stores the intended URL to redirect to after succesful login .