app\main\controllers\AuthController::showRegistrationForm PHP Method

showRegistrationForm() public method

GET | This shows the form to register.
public showRegistrationForm ( ) : mixed
return mixed
    public function showRegistrationForm()
    {
        # find session if it has an 'input'
        if (session()->has('input')) {
            # get the session 'input' then remove it
            $input = session()->get('input');
            session()->remove('input');
            # set the tag 'email' to rollback the value inputted
            tag()->setDefault('email', $input['email']);
        }
        return view('auth.showRegistrationForm');
    }