protected function getRecordExtras() { $systemServiceId = Service::whereType('system')->value('id'); return ['service_id' => $systemServiceId]; }
/** * @return integer|null */ private function getDefaultStorageServiceId() { /** @type BaseModel $model */ $model = Service::whereType('local_file')->first(); $storageServiceId = $model ? $model->{Service::getPrimaryKeyStatic()} : null; return $storageServiceId; }
protected function getRecordExtras() { $systemServiceId = Service::whereType('system')->value('id'); return ['service_id' => $systemServiceId, 'table' => 'sql_db_config']; }