1 | <?php namespace Arcanedev\LaravelTracker\Models; |
||
15 | class Query extends Model |
||
16 | { |
||
17 | /* ------------------------------------------------------------------------------------------------ |
||
18 | | Properties |
||
19 | | ------------------------------------------------------------------------------------------------ |
||
20 | */ |
||
21 | /** |
||
22 | * The table associated with the model. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $table = 'queries'; |
||
27 | |||
28 | /** |
||
29 | * The attributes that are mass assignable. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $fillable = ['query', 'arguments']; |
||
34 | |||
35 | /** |
||
36 | * The attributes that should be cast to native types. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $casts = [ |
||
41 | 'id' => 'int', |
||
42 | 'arguments' => 'array', |
||
43 | ]; |
||
44 | |||
45 | /* ------------------------------------------------------------------------------------------------ |
||
46 | | Relationships |
||
47 | | ------------------------------------------------------------------------------------------------ |
||
48 | */ |
||
49 | } |
||
50 |