| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Upload extends Model |
||
| 8 | { |
||
| 9 | protected $fillable = [ |
||
| 10 | 'user_id', |
||
| 11 | 'location', |
||
| 12 | 'uploadeable_id', |
||
| 13 | 'uploadeable_type', |
||
| 14 | ]; |
||
| 15 | |||
| 16 | public function user() |
||
| 17 | { |
||
| 18 | return $this->belongsTo(User::class); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function users() |
||
| 22 | { |
||
| 23 | return $this->belongsToMany(Upload::class); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function uploadeable() |
||
| 29 | } |
||
| 30 | } |
||
| 31 |