mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
implement remindable interface on default user.
This commit is contained in:
parent
7e81f9de94
commit
af4381f7de
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Auth\UserInterface;
|
||||
use Illuminate\Auth\RemindableInterface;
|
||||
|
||||
class User extends Eloquent implements UserInterface {
|
||||
class User extends Eloquent implements UserInterface, RemindableInterface {
|
||||
|
||||
/**
|
||||
* The database table used by the model.
|
||||
@ -38,4 +39,14 @@ class User extends Eloquent implements UserInterface {
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the e-mail address where password reminders are sent.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReminderEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user