| 1 | <?php namespace Arcanedev\LaravelTracker\Models; |
||
| 19 | class Domain extends AbstractModel implements DomainContract |
||
| 20 | { |
||
| 21 | /* ----------------------------------------------------------------- |
||
| 22 | | Properties |
||
| 23 | | ----------------------------------------------------------------- |
||
| 24 | */ |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The table associated with the model. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $table = 'domains'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The attributes that are mass assignable. |
||
| 35 | * |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $fillable = ['name']; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * The attributes that should be cast to native types. |
||
| 42 | * |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | protected $casts = [ |
||
| 46 | 'id' => 'integer', |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /* ----------------------------------------------------------------- |
||
| 50 | | Relationships |
||
| 51 | | ----------------------------------------------------------------- |
||
| 52 | */ |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Referer relationship. |
||
| 56 | * |
||
| 57 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 58 | */ |
||
| 59 | public function referers() |
||
| 65 | } |
||
| 66 |