*/ protected $fillable = [ 'name', 'slug', 'endpoint_url', 'check_type', 'probe_identifier', 'status', 'last_checked_at', 'uptime_percentage', 'response_time_ms', 'is_enabled', 'sort_order', ]; /** * @return array */ protected function casts(): array { return [ 'status' => ServiceStatusEnum::class, 'last_checked_at' => 'datetime', 'is_enabled' => 'boolean', 'uptime_percentage' => 'decimal:2', ]; } /** * @return BelongsToMany */ public function incidents(): BelongsToMany { return $this->belongsToMany(ServiceIncident::class, 'service_incident_service_status') ->withTimestamps(); } }