37 lines
733 B
PHP
37 lines
733 B
PHP
|
|
<?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;
|
||
|
|
}
|
||
|
|
}
|