Relationship select default value timing unclear in FilamentPHP Panels v3
0 reputation · 23 Nov 2025, 00:25 UTC
Relationship select default value timing in FilamentPHP Panels v3
Goal: Determine whether default values are set on a relationship select field before or after the afterStateHydrated callback executes in a Filament form built with Laravel 10+, Livewire v3 and Filament Panels v3.
Constraints: The form uses a BelongsTo relationship select that may be nullable, and the application relies on afterStateHydrated to perform additional UI adjustments based on the loaded value. Version compatibility requires Laravel 10.x, Livewire 3.x and Filament 3.x, but the exact hydration order is not documented and appears to differ from Panels v2 behavior.
Questions:
- Are default values applied to the relationship select before or after
afterStateHydratedruns? - Does this timing change when the relationship is nullable versus non‑null?
- How can the intermediate state be inspected without altering core Filament code?