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