1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Xetaravel\Models; |
||
6 | |||
7 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
||
8 | |||
9 | class Newsletter extends Model |
||
10 | { |
||
11 | use HasFactory; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
12 | |||
13 | /** |
||
14 | * The attributes that are mass assignable. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $fillable = [ |
||
19 | 'email', |
||
20 | 'options' |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * The attributes that should be cast to native types. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $casts = [ |
||
29 | 'options' => 'array' |
||
30 | ]; |
||
31 | } |
||
32 |