Releases: ronssij/filament-simple-draft
Releases · ronssij/filament-simple-draft
Release list
v1.2.0
What's new
- Support Filament 5.x — widened
filament/supportconstraint to^3.0|^4.0|^5.0. Verified against a real Filament v5.7.6 + Livewire v4.4.0 app: same result as the v4 verification, no plugin code changes needed since v5 exists mainly to support Livewire v4 without changing the Filament API surface. - Added a README banner image.
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's new
- Support Filament 4.x — widened
filament/supportconstraint to^3.0|^4.0. Verified against a real Filament v4.12.6 app; no other code changes were required, sinceField,Action,Color,CreateRecord/EditRecord, andNotificationnamespaces are unchanged in v4. - Fix draft visibility in the admin panel — added
Ronssij\FilamentSimpleDraft\Resources\Concerns\Draftable, a Resource trait that overridesgetEloquentQuery()to include drafts. Without it, records saved as drafts were hidden by thePublishedScopeglobal scope and became unreachable (404 on edit, missing from listings). - Fix dead notification override —
Create\Draftablewas overridinggetSavedNotification(), a method Filament'sCreateRecordnever calls (it callsgetCreatedNotification()in both v3 and v4). Renamed so the custom success notification actually fires.
Closes #2
Full Changelog: v1.0.6...v1.1.0
Fix: Draftable is not used
v1.0.6 fix: If draft trait is not used on record but used in form (#1)