Property | Type | Description | |
---|---|---|---|
$emailConfirmationService | |||
$redirectPath | |||
$redirectTo | string | Where to redirect users after login / registration. | |
$socialAuthService | |||
$userRepo |
Method | Description | |
---|---|---|
__construct ( |
Create a new controller instance. | |
confirmEmail ( $token ) : Illuminate\Http\RedirectResponse | |
Confirms an email via a token and logs the user into the system. | |
detachSocialAccount ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
Detach a social account from a user. | |
getRegister ( ) : Illuminate\Http\Response | Show the application registration form. | |
getRegisterConfirmation ( ) | Show the page to tell the user to check their email and confirm their address. | |
postRegister ( Illuminate\Http\Request $request ) : Illuminate\Http\Response | Handle a registration request for the application. | |
resendConfirmation ( Illuminate\Http\Request $request ) : Illuminate\View\View | Resend the confirmation email | |
showAwaitingConfirmation ( ) : Illuminate\View\View | Shows a notice that a user's email address has not been confirmed, Also has the option to re-send the confirmation email. | |
socialCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
The callback for social login services. | |
socialRegister ( $socialDriver ) : mixed | Redirect to the social site for authentication intended to register. |
Method | Description | |
---|---|---|
checkRegistrationAllowed ( ) | Check whether or not registrations are allowed in the app settings. | |
create ( array $data ) : |
Create a new user instance after a valid registration. | |
registerUser ( array $userData, boolean | false | SocialAccount $socialAccount = false ) : Illuminate\Http\RedirectResponse | |
The registrations flow for all users. | |
socialRegisterCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
Register a new user after a registration callback. | |
validator ( array $data ) : Illuminate\Contracts\Validation\Validator | Get a validator for an incoming registration request. |
public __construct ( |
||
$socialAuthService | ||
$emailConfirmationService | ||
$userRepo |
protected checkRegistrationAllowed ( ) |
public confirmEmail ( $token ) : Illuminate\Http\RedirectResponse | |
||
$token | ||
return | Illuminate\Http\RedirectResponse | |
public detachSocialAccount ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
||
$socialDriver | ||
return | Illuminate\Http\RedirectResponse | |
public getRegister ( ) : Illuminate\Http\Response | ||
return | Illuminate\Http\Response |
public getRegisterConfirmation ( ) |
public postRegister ( Illuminate\Http\Request $request ) : Illuminate\Http\Response | ||
$request | Illuminate\Http\Request | |
return | Illuminate\Http\Response |
protected registerUser ( array $userData, boolean | false | SocialAccount $socialAccount = false ) : Illuminate\Http\RedirectResponse | |
||
$userData | array | |
$socialAccount | boolean | false | SocialAccount | |
return | Illuminate\Http\RedirectResponse | |
public resendConfirmation ( Illuminate\Http\Request $request ) : Illuminate\View\View | ||
$request | Illuminate\Http\Request | |
return | Illuminate\View\View |
public showAwaitingConfirmation ( ) : Illuminate\View\View | ||
return | Illuminate\View\View |
public socialCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
||
$socialDriver | ||
return | Illuminate\Http\RedirectResponse | |
public socialRegister ( $socialDriver ) : mixed | ||
$socialDriver | ||
return | mixed |
protected socialRegisterCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
||
$socialDriver | ||
return | Illuminate\Http\RedirectResponse | |
protected string $redirectTo | ||
return | string |