1 | <?php namespace Arcanedev\LaravelTracker\Models; |
||
18 | class RoutePath extends AbstractModel |
||
19 | { |
||
20 | /* ------------------------------------------------------------------------------------------------ |
||
21 | | Properties |
||
22 | | ------------------------------------------------------------------------------------------------ |
||
23 | */ |
||
24 | /** |
||
25 | * The table associated with the model. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $table = 'route_paths'; |
||
30 | |||
31 | /** |
||
32 | * The attributes that are mass assignable. |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $fillable = ['route_id', 'path']; |
||
37 | |||
38 | /** |
||
39 | * The attributes that should be cast to native types. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $casts = [ |
||
44 | 'route_id' => 'integer', |
||
45 | ]; |
||
46 | |||
47 | /* ------------------------------------------------------------------------------------------------ |
||
48 | | Relationships |
||
49 | | ------------------------------------------------------------------------------------------------ |
||
50 | */ |
||
51 | /** |
||
52 | * Route relationship. |
||
53 | * |
||
54 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
55 | */ |
||
56 | public function route() |
||
62 | |||
63 | /** |
||
64 | * Parameters relationship. |
||
65 | * |
||
66 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
67 | */ |
||
68 | 6 | public function parameters() |
|
74 | } |
||
75 |