1 | <?php namespace Arcanesoft\Auth\Models; |
||
17 | class PasswordReset extends Model |
||
18 | { |
||
19 | /* ------------------------------------------------------------------------------------------------ |
||
20 | | Properties |
||
21 | | ------------------------------------------------------------------------------------------------ |
||
22 | */ |
||
23 | protected $table = 'password_resets'; |
||
24 | |||
25 | protected $hidden = ['token']; |
||
26 | |||
27 | public $timestamps = false; |
||
28 | |||
29 | protected $dates = [self::CREATED_AT]; |
||
30 | |||
31 | /* ------------------------------------------------------------------------------------------------ |
||
32 | | Relationships |
||
33 | | ------------------------------------------------------------------------------------------------ |
||
34 | */ |
||
35 | public function user() |
||
39 | |||
40 | /* ------------------------------------------------------------------------------------------------ |
||
41 | | Getters & Setters |
||
42 | | ------------------------------------------------------------------------------------------------ |
||
43 | */ |
||
44 | /** |
||
45 | * Get the token repository. |
||
46 | * |
||
47 | * @return \Illuminate\Auth\Passwords\TokenRepositoryInterface |
||
48 | */ |
||
49 | public static function getTokenRepository() |
||
53 | |||
54 | /* ------------------------------------------------------------------------------------------------ |
||
55 | | Check Functions |
||
56 | | ------------------------------------------------------------------------------------------------ |
||
57 | */ |
||
58 | /** |
||
59 | * Check if the password reset was expired. |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function isExpired() |
||
71 | } |
||
72 |