VerifyEmail
class VerifyEmail extends Notification
Traits
Properties
| string|null | $id | The unique identifier for the notification. |
from Notification |
| string|null | $locale | The locale to be used when sending the notification. |
from Notification |
| static null|Closure(mixed): string | $createUrlCallback | The callback that should be used to create the verify email URL. |
|
| static null|MailMessage | $toMailCallback | The callback that should be used to build the mail message. |
Methods
Get the property value prepared for serialization.
Get the restored property value after deserialization.
Get the query for model restoration.
Get the notification's channels.
Build the mail representation of the notification.
Get the verify email notification mail message for the given URL.
Get the verification URL for the given notifiable.
Set a callback that should be used when creating the email verification URL.
Set a callback that should be used when building the notification mail message.
Flush all static state.
Details
in
SerializesAndRestoresModelIdentifiers at line 20
protected mixed
getSerializedPropertyValue(mixed $value, bool $withRelations = true)
Get the property value prepared for serialization.
in
SerializesAndRestoresModelIdentifiers at line 54
protected mixed
getRestoredPropertyValue(mixed $value)
Get the restored property value after deserialization.
in
SerializesAndRestoresModelIdentifiers at line 68
protected Collection
restoreCollection(ModelIdentifier $value)
Restore a queueable collection instance.
in
SerializesAndRestoresModelIdentifiers at line 109
Model
restoreModel(ModelIdentifier $value)
Restore the model from the model identifier instance.
in
SerializesAndRestoresModelIdentifiers at line 123
protected Builder
getQueryForModelRestoration(Model $model, array|int|string $ids)
Get the query for model restoration.
in
SerializesModels at line 18
array
__serialize()
Prepare the instance values for serialization.
in
SerializesModels at line 68
void
__unserialize(array $values)
Restore the model after serialization.
in
SerializesModels at line 101
protected mixed
getPropertyValue(ReflectionProperty $property)
Get the property value for the given property.
in
Notification at line 26
array
broadcastOn()
Get the channels the event should broadcast on.
in
Notification at line 34
Notification
locale(string $locale)
Set the locale to send this notification in.
at line 34
array
via(mixed $notifiable)
Get the notification's channels.
at line 42
MailMessage
toMail(mixed $notifiable)
Build the mail representation of the notification.
at line 56
protected MailMessage
buildMailMessage(string $url)
Get the verify email notification mail message for the given URL.
at line 68
protected string
verificationUrl(mixed $notifiable)
Get the verification URL for the given notifiable.
at line 92
static void
createUrlUsing(Closure $callback)
Set a callback that should be used when creating the email verification URL.
Boot-only. The callback persists in a static property for the worker lifetime and runs on every email-verification notification.
at line 105
static void
toMailUsing(Closure $callback)
Set a callback that should be used when building the notification mail message.
Boot-only. The callback persists in a static property for the worker lifetime and runs on every email-verification notification.
at line 113
static void
flushState()
Flush all static state.