'array', 'is_resolved' => 'boolean', 'resolved_at' => 'datetime', ]; public function account(): BelongsTo { return $this->belongsTo(HostingAccount::class, 'hosting_account_id'); } public function scopeUnresolved($query) { return $query->where('is_resolved', false); } }