Total Complexity | 4 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Theme extends Model |
||
9 | { |
||
10 | use SoftDeletes; |
||
11 | |||
12 | /** |
||
13 | * The database table used by the model. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $table = 'themes'; |
||
18 | |||
19 | /** |
||
20 | * The attributes that are not mass assignable. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $guarded = [ |
||
25 | 'id', |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * Fillable fields for a Profile. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $fillable = [ |
||
34 | 'name', |
||
35 | 'link', |
||
36 | 'notes', |
||
37 | 'status', |
||
38 | 'taggable_id', |
||
39 | 'taggable_type', |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * The attributes that should be mutated to dates. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $dates = [ |
||
48 | 'deleted_at', |
||
49 | ]; |
||
50 | |||
51 | /** |
||
52 | * Get a validator for an incoming registration request. |
||
53 | * |
||
54 | * @param array $data |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | public static function rules($id = 0, $merge = []) |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * Build Theme Relationships. |
||
72 | * |
||
73 | * @var array |
||
74 | * |
||
75 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
76 | */ |
||
77 | public function profile() |
||
82 |