issue with foreach statement syntax

This commit is contained in:
2019-05-29 22:24:06 -05:00
parent acc7da2c07
commit 3cc393816e
2 changed files with 5 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ class ProcessStructureJob implements ShouldQueue
//This will be implemented in the near future. //This will be implemented in the near future.
if(isset($structure->services)) { if(isset($structure->services)) {
foreach($structure->service as $service) { foreach($structure->services as $service) {
//Search for the service, and if found, update it, else add it. //Search for the service, and if found, update it, else add it.
$serviceFound = Service::where([ $serviceFound = Service::where([
'structure_id' => $structure->structure_id, 'structure_id' => $structure->structure_id,

View File

@@ -146,6 +146,8 @@ return [
'default', 'default',
'journal', 'journal',
'mail', 'mail',
'structures',
'assets',
], ],
'balance' => 'auto', 'balance' => 'auto',
'processes' => 3, 'processes' => 3,
@@ -160,6 +162,8 @@ return [
'default', 'default',
'journal', 'journal',
'mail', 'mail',
'structures',
'assets',
], ],
'balance' => 'auto', 'balance' => 'auto',
'processes' => 3, 'processes' => 3,