| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | class Visit extends Model |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The table associated with the model. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $table = 'visits'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The attributes that are mass assignable. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $fillable = ['user_id']; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Define a polymorphic, inverse one-to-one or many relationship. |
||
| 32 | * |
||
| 33 | * @return MorphTo |
||
| 34 | */ |
||
| 35 | public function visitable() |
||
| 36 | { |
||
| 37 | return $this->morphTo(); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function user() |
||
| 43 | } |
||
| 44 | } |
||
| 45 |