1 | <?php namespace Arcanedev\LaravelTracker\Models; |
||
20 | class Route extends AbstractModel implements RouteContract |
||
21 | { |
||
22 | /* ----------------------------------------------------------------- |
||
23 | | Properties |
||
24 | | ----------------------------------------------------------------- |
||
25 | */ |
||
26 | |||
27 | /** |
||
28 | * The table associated with the model. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $table = 'routes'; |
||
33 | |||
34 | /** |
||
35 | * The attributes that are mass assignable. |
||
36 | * |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $fillable = ['name', 'action']; |
||
40 | |||
41 | /* ----------------------------------------------------------------- |
||
42 | | Relationships |
||
43 | | ----------------------------------------------------------------- |
||
44 | */ |
||
45 | |||
46 | /** |
||
47 | * Paths relationship. |
||
48 | * |
||
49 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
50 | */ |
||
51 | public function paths() |
||
57 | } |
||
58 |