1 | <?php |
||
22 | class MovieEarning extends Eloquent { |
||
|
|||
23 | |||
24 | /** |
||
25 | * Fields to format as dates |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $dates = ['date']; |
||
29 | |||
30 | /** |
||
31 | * Allow filling of these fields |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $fillable = ['movie_id', 'date', 'domestic', 'worldwide']; |
||
35 | |||
36 | /** |
||
37 | * Get the movie of the earning |
||
38 | * |
||
39 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
40 | */ |
||
41 | public function movie() { |
||
44 | |||
45 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.