*/ protected $fillable = [ 'calls', 'date' ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'date' => 'date', ]; /** * Get the url that owns the stats. * * @return BelongsTo */ public function url() { return $this->belongsTo(Url::class); } }