*/ protected $fillable = [ 'date', ]; /** * The model's attributes. * * @var array */ protected $attributes = [ 'nb_calls' => 0, ]; /** * Map attribute names to enum classes. * * @var array */ protected $casts = [ 'date' => 'date', ]; // * RELATIONS /** * Brand belongs to relation. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function brand(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Brand::class); } /** * Service belongs to relation. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function service(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Service::class); } }