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