get(); // update statistics table foreach ($datasets as $dataset) { $datasetId = $dataset->id; $time = new \Illuminate\Support\Carbon(); $dataset->server_date_published = $time; $dataset->save(); // try { // // Opus_Search_Service::selectIndexingService('onDocumentChange') // $service = new SolariumAdapter("solr", config('solarium')); // $service->addDatasetsToIndex($dataset); // } catch (Exception $e) { // Log::debug(__METHOD__ . ': ' . 'Indexing document ' . $datasetId . ' failed: ' . $e->getMessage()); // } } } }