class
Illuminate
/
Auth
/
Notifications
/
ResetPassword
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ResetPassword
Extends
Properties
public
$token string
The password reset token.
Default: null
public
static
$createUrlCallback callable|null
The callback that should be used to create the reset password URL.
Default: null
public
static
$toMailCallback callable|null
The callback that should be used to build the mail message.
Default: null
Methods
public
__construct ( $token ) : void
Create a notification instance.
Parameters
- $token string
public
via ( $notifiable ) : array|string
Get the notification's channels.
Parameters
- $notifiable mixed
public
toMail ( $notifiable ) : MailMessage
Build the mail representation of the notification.
Parameters
- $notifiable mixed
protected
buildMailMessage ( $url ) : MailMessage
Get the reset password notification mail message for the given URL.
Parameters
- $url string
protected
resetUrl ( $notifiable ) : string
Get the reset URL for the given notifiable.
Parameters
- $notifiable mixed
public
static
createUrlUsing ( $callback ) : void
Set a callback that should be used when creating the reset password button URL.
Parameters
-
$
Closure
string $callback
public
static
toMailUsing ( $callback ) : void
Set a callback that should be used when building the notification mail message.
Parameters
-
$
Closure
\Illuminate\Notifications\Messages\MailMessage $callback