trait HasAuth (View source)

Properties

protected string|Closure $emailVerifiedMiddlewareName
protected string $emailVerificationRouteAction
protected string $emailVerificationPromptRouteSlug
protected string $emailVerificationRouteSlug
protected string $emailVerificationRoutePrefix
protected bool $isEmailVerificationRequired
protected string $loginRouteAction
protected string $loginRouteSlug
protected string $registrationRouteAction
protected string $registrationRouteSlug
protected string $requestPasswordResetRouteAction
protected string $requestPasswordResetRouteSlug
protected string $resetPasswordRouteAction
protected string $resetPasswordRouteSlug
protected string $resetPasswordRoutePrefix
protected string|null $profilePage
protected bool $isProfilePageSimple
protected string $authGuard
protected string|null $authPasswordBroker
protected bool|Closure $arePasswordsRevealable

Methods

emailVerification(string|Closure|array|null $promptAction = EmailVerificationPrompt::class, bool $isRequired = true)

No description

emailVerificationPromptRouteSlug(string $slug)

No description

emailVerificationRouteSlug(string $slug)

No description

emailVerificationRoutePrefix(string $prefix)

No description

emailVerifiedMiddlewareName(string|Closure $name)

No description

requiresEmailVerification(bool $condition = true)

No description

login(string|Closure|array|null $action = Login::class)

No description

loginRouteSlug(string $slug)

No description

passwordReset(string|Closure|array|null $requestAction = RequestPasswordReset::class, string|Closure|array|null $resetAction = ResetPassword::class)

No description

passwordResetRequestRouteSlug(string $slug)

No description

passwordResetRouteSlug(string $slug)

No description

passwordResetRoutePrefix(string $prefix)

No description

registration(string|Closure|array|null $action = Register::class)

No description

registrationRouteSlug(string $slug)

No description

profile(string|null $page = EditProfile::class, bool $isSimple = true)

No description

simpleProfilePage(bool $condition = true)

No description

Guard
auth()

No description

authGuard(string $guard)

No description

authPasswordBroker(string|null $broker = null)

No description

bool
isEmailVerificationRequired()

No description

bool
hasProfile()

No description

string|null
getProfilePage()

No description

bool
isProfilePageSimple()

No description

string|null
getEmailVerificationPromptUrl(array $parameters = [])

No description

string
string
getEmailVerifiedMiddleware()

No description

string|null
getLoginUrl(array $parameters = [])

No description

string|null
getRegistrationUrl(array $parameters = [])

No description

string|null
getRequestPasswordResetUrl(array $parameters = [])

No description

string
getVerifyEmailUrl(Authenticatable $user, array $parameters = [])

No description

string
getResetPasswordUrl(string $token, Authenticatable $user, array $parameters = [])

No description

string|null
getProfileUrl(array $parameters = [])

No description

string
getLogoutUrl(array $parameters = [])

No description

string
string|Closure|array|null
string
string
getEmailVerificationRouteSlug(string $suffix)

No description

string
string|Closure|array|null
getLoginRouteAction()

No description

string
getLoginRouteSlug()

No description

string|Closure|array|null
getRegistrationRouteAction()

No description

string
getRegistrationRouteSlug()

No description

string|Closure|array|null
string
string|Closure|array|null
getResetPasswordRouteAction()

No description

string
getResetPasswordRouteSlug()

No description

string
getResetPasswordRoutePrefix()

No description

bool
hasEmailVerification()

No description

bool
hasLogin()

No description

bool
hasPasswordReset()

No description

bool
hasRegistration()

No description

string
getAuthGuard()

No description

string|null
getAuthPasswordBroker()

No description

revealablePasswords(bool|Closure $condition = true)

No description

bool
arePasswordsRevealable()

No description

Details

HasAuth emailVerification(string|Closure|array|null $promptAction = EmailVerificationPrompt::class, bool $isRequired = true)

No description

Parameters

string|Closure|array|null $promptAction
bool $isRequired

Return Value

HasAuth

HasAuth emailVerificationPromptRouteSlug(string $slug)

No description

Parameters

string $slug

Return Value

HasAuth

HasAuth emailVerificationRouteSlug(string $slug)

No description

Parameters

string $slug

Return Value

HasAuth

HasAuth emailVerificationRoutePrefix(string $prefix)

No description

Parameters

string $prefix

Return Value

HasAuth

HasAuth emailVerifiedMiddlewareName(string|Closure $name)

No description

Parameters

string|Closure $name

Return Value

HasAuth

HasAuth requiresEmailVerification(bool $condition = true)

No description

Parameters

bool $condition

Return Value

HasAuth

HasAuth login(string|Closure|array|null $action = Login::class)

No description

Parameters

string|Closure|array|null $action

Return Value

HasAuth

HasAuth loginRouteSlug(string $slug)

No description

Parameters

string $slug

Return Value

HasAuth

HasAuth passwordReset(string|Closure|array|null $requestAction = RequestPasswordReset::class, string|Closure|array|null $resetAction = ResetPassword::class)

No description

Parameters

string|Closure|array|null $requestAction
string|Closure|array|null $resetAction

Return Value

HasAuth

HasAuth passwordResetRequestRouteSlug(string $slug)

No description

Parameters

string $slug

Return Value

HasAuth

HasAuth passwordResetRouteSlug(string $slug)

No description

Parameters

string $slug

Return Value

HasAuth

HasAuth passwordResetRoutePrefix(string $prefix)

No description

Parameters

string $prefix

Return Value

HasAuth

HasAuth registration(string|Closure|array|null $action = Register::class)

No description

Parameters

string|Closure|array|null $action

Return Value

HasAuth

HasAuth registrationRouteSlug(string $slug)

No description

Parameters

string $slug

Return Value

HasAuth

HasAuth profile(string|null $page = EditProfile::class, bool $isSimple = true)

No description

Parameters

string|null $page
bool $isSimple

Return Value

HasAuth

HasAuth simpleProfilePage(bool $condition = true)

No description

Parameters

bool $condition

Return Value

HasAuth

Guard auth()

No description

Return Value

Guard

HasAuth authGuard(string $guard)

No description

Parameters

string $guard

Return Value

HasAuth

HasAuth authPasswordBroker(string|null $broker = null)

No description

Parameters

string|null $broker

Return Value

HasAuth

bool isEmailVerificationRequired()

No description

Return Value

bool

bool hasProfile()

No description

Return Value

bool

string|null getProfilePage()

No description

Return Value

string|null

bool isProfilePageSimple()

No description

Return Value

bool

string|null getEmailVerificationPromptUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string|null

string getEmailVerificationPromptRouteName()

No description

Return Value

string

string getEmailVerifiedMiddleware()

No description

Return Value

string

string|null getLoginUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string|null

string|null getRegistrationUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string|null

string|null getRequestPasswordResetUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string|null

string getVerifyEmailUrl(Authenticatable $user, array $parameters = [])

No description

Parameters

Authenticatable $user
array $parameters

Return Value

string

string getResetPasswordUrl(string $token, Authenticatable $user, array $parameters = [])

No description

Parameters

string $token
Authenticatable $user
array $parameters

Return Value

string

string|null getProfileUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string|null

string getLogoutUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string

string getEmailVerifiedMiddlewareName()

No description

Return Value

string

string|Closure|array|null getEmailVerificationPromptRouteAction()

No description

Return Value

string|Closure|array|null

| Closure | array<class-string, string> | null

string getEmailVerificationPromptRouteSlug()

No description

Return Value

string

string getEmailVerificationRouteSlug(string $suffix)

No description

Parameters

string $suffix

Return Value

string

string getEmailVerificationRoutePrefix()

No description

Return Value

string

string|Closure|array|null getLoginRouteAction()

No description

Return Value

string|Closure|array|null

| Closure | array<class-string, string> | null

string getLoginRouteSlug()

No description

Return Value

string

string|Closure|array|null getRegistrationRouteAction()

No description

Return Value

string|Closure|array|null

| Closure | array<class-string, string> | null

string getRegistrationRouteSlug()

No description

Return Value

string

string|Closure|array|null getRequestPasswordResetRouteAction()

No description

Return Value

string|Closure|array|null

| Closure | array<class-string, string> | null

string getRequestPasswordResetRouteSlug()

No description

Return Value

string

string|Closure|array|null getResetPasswordRouteAction()

No description

Return Value

string|Closure|array|null

| Closure | array<class-string, string> | null

string getResetPasswordRouteSlug()

No description

Return Value

string

string getResetPasswordRoutePrefix()

No description

Return Value

string

bool hasEmailVerification()

No description

Return Value

bool

bool hasLogin()

No description

Return Value

bool

bool hasPasswordReset()

No description

Return Value

bool

bool hasRegistration()

No description

Return Value

bool

string getAuthGuard()

No description

Return Value

string

string|null getAuthPasswordBroker()

No description

Return Value

string|null

HasAuth revealablePasswords(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasAuth

bool arePasswordsRevealable()

No description

Return Value

bool