outl1ne / nova-page-manager

Static page and region manager for Laravel Nova - designed for headless CMS's.
MIT License
180 stars 39 forks source link

Error after migrating from Nova 3 to 4 #131

Closed 1stevengrant closed 2 years ago

1stevengrant commented 2 years ago

I followed the guide at https://github.com/outl1ne/nova-page-manager/blob/main/MIGRATING.md in migrating things over (although this only seems to handle the migration of pages only and not regions)

Anyway, when I try to visit the page manager in Nova, I get an error Arr::map does not exist which of course it doesn't - I can see this in https://github.com/outl1ne/nova-page-manager/blob/f1bae49077e7f8b4669ae96db3920449ab19a413/src/Helpers/NPMHelpers.php#L85

would have thought someone else would have run into this already?

1stevengrant commented 2 years ago

a found the issue. Arr::map is a Laravel 9 helper so I'll need to shift to L9 first.