Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
PasswordReset | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Engelsystem\Models\User; |
6 | |
7 | use Carbon\Carbon; |
8 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
9 | use Illuminate\Database\Query\Builder as QueryBuilder; |
10 | |
11 | /** |
12 | * @property string $token |
13 | * @property Carbon|null $created_at |
14 | * |
15 | * @method static QueryBuilder|PasswordReset[] whereToken($value) |
16 | * @method static QueryBuilder|PasswordReset[] whereCreatedAt($value) |
17 | */ |
18 | class PasswordReset extends HasUserModel |
19 | { |
20 | use HasFactory; |
21 | |
22 | /** @var bool enable timestamps for created_at */ |
23 | public $timestamps = true; // phpcs:ignore |
24 | |
25 | /** @var null Disable updated_at */ |
26 | public const UPDATED_AT = null; |
27 | |
28 | /** |
29 | * The attributes that are mass assignable. |
30 | * |
31 | * @var array<string> |
32 | */ |
33 | protected $fillable = [ // phpcs:ignore |
34 | 'user_id', |
35 | 'token', |
36 | ]; |
37 | } |