On this page
Upgrading
upgrade to v4.0
- the editor
TipTapEditorhas been deleted and replaced withRichEditor
using an enum for the status:
the namespace for the PostStatus changed from LaraZeus\\Sky\\Models\\PostStatus to LaraZeus\\Sky\\Enums\\PostStatus
Configuration:
Add to your config file:
1'enums' => [2 'PostStatus' => PostStatus::class,3],
and remove the key PostStatus from the models array.
the same for the panel configuration:
1SkyPlugin::make()2 ->models([3 'PostStatus' => \App\Enums\Sky\PostStatus::class, 4 ])5 6 ->enums([ 7 'PostStatus' => \App\Enums\Sky\PostStatus::class, 8 ])