diff --git a/Services/ManifestService.php b/Services/ManifestService.php index c7afd79..aad5e33 100644 --- a/Services/ManifestService.php +++ b/Services/ManifestService.php @@ -25,7 +25,7 @@ public function generate() 'splash' => config('laravelpwa.manifest.splash') ]; - foreach (config('laravelpwa.manifest.icons') as $size => $file) { + foreach (config('laravelpwa.manifest.icons', []) as $size => $file) { $fileInfo = pathinfo($file['path']); $basicManifest['icons'][] = [ 'src' => $file['path'], @@ -35,7 +35,7 @@ public function generate() ]; } - if (config('laravelpwa.manifest.shortcuts')) { + if (config('laravelpwa.manifest.shortcuts', [])) { foreach (config('laravelpwa.manifest.shortcuts') as $shortcut) { if (array_key_exists("icons", $shortcut)) { @@ -63,7 +63,7 @@ public function generate() } } - foreach (config('laravelpwa.manifest.custom') as $tag => $value) { + foreach (config('laravelpwa.manifest.custom', []) as $tag => $value) { $basicManifest[$tag] = $value; } return $basicManifest;