Attendize/app/Models/BackpackUser.php

37 lines
733 B
PHP
Raw Normal View History

2018-12-15 07:51:31 +00:00
<?php
namespace App\Models;
use App\Models\User;
use Backpack\Base\app\Notifications\ResetPasswordNotification as ResetPasswordNotification;
use Tightenco\Parental\HasParentModel;
class BackpackUser extends User
{
use HasParentModel;
protected $table = 'users';
/**
* Send the password reset notification.
*
* @param string $token
*
* @return void
*/
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
}
/**
* Get the e-mail address where password reset links are sent.
*
* @return string
*/
public function getEmailForPasswordReset()
{
return $this->email;
}
}