ResetPassword
class ResetPassword 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): string | $createUrlCallback | The callback that should be used to create the reset password URL. |
|
| static null|MailMessage | $toMailCallback | The callback that should be used to build the mail message. |
|
| int | $expireMinutes | The number of minutes until the reset token expires. |
Methods
Get the property value prepared for serialization.
Get the restored property value after deserialization.
Get the query for model restoration.
Create a notification instance.
Get the notification's channels.
Build the mail representation of the notification.
Get the reset password notification mail message for the given URL.
Resolve the expiry minutes from the broker sending this notification.
Get the reset URL for the given notifiable.
Set a callback that should be used when creating the reset password button 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 43
__construct(string $token)
Create a notification instance.
at line 53
array
via(mixed $notifiable)
Get the notification's channels.
at line 61
MailMessage
toMail(mixed $notifiable)
Build the mail representation of the notification.
at line 73
protected MailMessage
buildMailMessage(string $url)
Get the reset password notification mail message for the given URL.
at line 91
protected int
resolveExpireMinutes()
Resolve the expiry minutes from the broker sending this notification.
Reads the sending broker stamped by PasswordBroker::sendResetLink(); outside a send flow (tests, previews), resolves the current default broker.
at line 103
protected string
resetUrl(mixed $notifiable)
Get the reset URL for the given notifiable.
at line 123
static void
createUrlUsing(Closure $callback)
Set a callback that should be used when creating the reset password button URL.
Boot-only. The callback persists in a static property for the worker lifetime and runs on every reset-password notification.
at line 136
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 reset-password notification.
at line 144
static void
flushState()
Flush all static state.