| Total Complexity | 0 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Newsletter extends Model |
||
| 10 | { |
||
| 11 | use HasFactory; |
||
|
|
|||
| 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 | ]; |
||
| 32 |