本文整理汇总了PHP中Illuminate\Contracts\Auth\CanResetPassword::toArray方法的典型用法代码示例。如果您正苦于以下问题:PHP CanResetPassword::toArray方法的具体用法?PHP CanResetPassword::toArray怎么用?PHP CanResetPassword::toArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Contracts\Auth\CanResetPassword
的用法示例。
在下文中一共展示了CanResetPassword::toArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: emailResetLink
/**
* Send the password reminder e-mail.
*
* @param \Illuminate\Contracts\Auth\CanResetPassword $user
* @param string $token
* @param \Closure|null $callback
*
* @return \Orchestra\Contracts\Notification\Receipt
*/
public function emailResetLink(RemindableContract $user, $token, Closure $callback = null)
{
// We will use the reminder view that was given to the broker to display the
// password reminder e-mail. We'll pass a "token" variable into the views
// so that it may be displayed for an user to click for password reset.
$data = ['user' => $user instanceof Arrayable ? $user->toArray() : $user, 'token' => $token];
$message = Message::create($this->emailView, $data);
return $this->mailer->send($user, $message, $callback);
}