add(new Timestamp([ 'heartbeat', 'icinga2_start_time' ])); $behaviors->add(new BoolCast([ 'responsible', 'icinga2_active_host_checks_enabled', 'icinga2_active_service_checks_enabled', 'icinga2_event_handlers_enabled', 'icinga2_flap_detection_enabled', 'icinga2_notifications_enabled', 'icinga2_performance_data_enabled' ])); $behaviors->add(new Binary([ 'id', 'environment_id', 'endpoint_id', ])); } public function createRelations(Relations $relations) { $relations->belongsTo('environment', Environment::class); $relations->belongsTo('endpoint', Endpoint::class)->setJoinType('LEFT'); } }