*/ protected $casts = [ 'visited_at' => 'datetime', 'is_bot' => 'boolean', 'is_proxy' => 'boolean', 'is_qr_scan' => 'boolean', ]; public function shortUrl(): BelongsTo { return $this->belongsTo(ShortUrl::class, 'short_url_id'); } }