The route function generates a URL for a given named route:
<?php $url = route('route.name');
<?php             $route = static::$route;

        }



        $defaultUrl = route($route, $token);



        $url = static::$url

            ? sprintf('%s?token=%s', static::$url, $token)
<?php     protected function getPasswordFormUrl()

    {

        return url($this->config['form_url'] ?? route('statamic.protect.password.show'));

    }



    protected function generateToken()
<?php             ]);

        }



        $html = $this->formOpen(route('statamic.protect.password.store'));



        $html .= '<input type="hidden" name="token" value="'.$token.'" />';
<?php         $knownParams = ['redirect', 'error_redirect', 'allow_request_redirect'];



        $html = $this->formOpen(route('statamic.login'), 'POST', $knownParams);



        $params = [];
<?php         $knownParams = ['redirect', 'error_redirect', 'allow_request_redirect'];



        $html = $this->formOpen(route('statamic.register'), 'POST', $knownParams);



        $params = [];
<?php             $queryParams['redirect'] = $redirect;

        }



        return route('statamic.logout', $queryParams);

    }
<?php         $knownParams = ['redirect', 'error_redirect', 'allow_request_redirect', 'reset_url'];



        $html = $this->formOpen(route('statamic.password.email'), 'POST', $knownParams);



        $params = [];
<?php         $knownParams = ['redirect'];



        $html = $this->formOpen(route('statamic.password.reset.action'), 'POST', $knownParams);



        $html .= '<input type="hidden" name="token" value="'.request('token').'" />';
<?php         $knownParams = array_merge(static::HANDLE_PARAM, ['redirect', 'error_redirect', 'allow_request_redirect', 'files']);



        $action = $this->params->get('action', route('statamic.forms.submit', $formHandle));

        $method = $this->params->get('method', 'POST');



        $html = $this->formOpen($action, $method, $knownParams);
<?php {

    protected function resetFormAction()

    {

        return route('statamic.account.activate.action');

    }



    protected function resetFormTitle()
<?php     public function sendResetLinkEmail(Request $request)

    {

        PasswordReset::resetFormRoute('statamic.cp.password.reset');

        PasswordReset::redirectAfterReset(route('statamic.cp.index'));



        return parent::sendResetLinkEmail($request);

    }
<?php     protected function resetFormAction()

    {

        return route('statamic.cp.password.reset.action');

    }

}
<?php         session()->flash('success', __('Views created successfully'));



        return [

            'redirect' => route('statamic.cp.collections.show', $request->collection->handle()),

        ];

    }
<?php     protected function resetFormAction()

    {

        return route('statamic.password.reset.action');

    }



    protected function resetFormTitle()
<?php     public function redirectPath()

    {

        return request('redirect') ?? route('statamic.site');

    }



    protected function setUserPassword($user, $password)