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.
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.
$serviceFound = Service::where([
'structure_id' => $structure->structure_id,