This guide describes how to upgrade this application.
The following deprecations from 3.x have been removed in 4.x:
Advoor\NovaEditorJs\NovaEditorJs::make
, useAdvoor\NovaEditorJs\NovaEditorJsField::make
instead- Config setting
editorSettings.initialBlock
, useeditorSettings.defaultBlock
instead - Support for Laravel 8.x and Laravel 9.x has been dropped.
To be more in line with the separation of concerns, a bunch of code has moved. The changes are somewhat backwards compatible, but you're advices to quickly fix these deprecations.
- The HTML rendering has been split from the field,
NovaEditorJs::make
is deprecated.- Update your Nova resources to use the
NovaEditorJsField
in thefields()
NovaEditorJs
is now a facade, containing thegenerateHtmlOutput
andaddRender
methods
- Update your Nova resources to use the
- PHP requirement is now 8.1+
- Laravel requirement is now 8.0+
NovaEditorJsField::displayUsing
now recieves aNovaEditorJsData
instance, instead of astring|array
.NovaEditorJsData
is a Fluent type, can be treated as aniterable
.
- The Table component has been updated. While this shouldn't affect the data model, you're best off checking it.
- Using the
NovaEditorJsCast
on your Eloquent models is now recommended over casting fields to an array.
No significant changes written down.
If upgrading from v0.4.0, re-publish the config file!