Newsletter
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
eloc 7
c 1
b 0
f 0
dl 0
loc 21
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
The trait Illuminate\Database\Eloquent\Factories\HasFactory requires the property $factoryClass which is not provided by Xetaravel\Models\Newsletter.
Loading history...
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