1 | <?php |
||
7 | class TrackableResourceModel extends Model |
||
8 | { |
||
9 | /** |
||
10 | * The table associated with the model. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $table = 'trackable_resources'; |
||
15 | |||
16 | /** |
||
17 | * Indicates if the IDs are auto-incrementing. |
||
18 | * |
||
19 | * @var bool |
||
20 | */ |
||
21 | public $incrementing = false; |
||
22 | |||
23 | /** |
||
24 | * The attributes that are mass assignable. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $fillable = ['id', 'type', 'resource', 'meta']; |
||
29 | |||
30 | /** |
||
31 | * Set the meta data attribute. |
||
32 | * |
||
33 | * @param array $value |
||
34 | */ |
||
35 | 3 | public function setMetaAttribute($value = []) |
|
43 | |||
44 | /** |
||
45 | * Get the meta data attribute. |
||
46 | * |
||
47 | * @return mixed |
||
48 | */ |
||
49 | 5 | public function getMetaAttribute() |
|
55 | } |
||
56 |