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