Skip to content

v1.0.10 - Fix Asset Registration with Nova

Choose a tag to compare

@iamgerwin iamgerwin released this 25 Nov 03:45
· 6 commits to main since this release
c83d55d

What's Changed

Fixed

  • Fixed FieldServiceProvider not correctly registering JavaScript assets with Nova
  • The previous $app->resolving() pattern was not working; switched to standard Nova::serving() pattern

Root Cause

The Vue components were never being loaded because the service provider wasn't correctly registering the JavaScript file with Nova. This was the actual root cause of the Flexible field issue.

Technical

  • Refactored FieldServiceProvider to use the standard Nova asset registration pattern
  • Now properly imports Laravel\Nova\Events\ServingNova and Laravel\Nova\Nova

Installation

composer require iamgerwin/nova-dependency-container:^1.0.10
php artisan cache:clear
php artisan view:clear

Verification

After updating, open browser Developer Tools (F12) and check the Console. You should now see [NovaDependencyContainer] logs when interacting with the form.

Full Changelog: v1.0.9...v1.0.10