kingmaker/filament-flex-layout
Split layout (Forms/Infolists) to support Flexbox’s justify-content and gap—critical for responsive, dynamic UI layouts (e.g., multi-column forms, aligned infolists).Flex support exists). Assess if your project is locked to v3.x or can migrate.Split), minimizing invasive changes.Flex required).Split components via method chaining (e.g., Flex::make()->horizontalArrangement(...)).->grow(false) for alignment to work (documentation gap risk).Flex components, responsive behavior).Flex supersedes this package). Assess upgrade path.Flex)?Flex subclass?grow(false) requirement)?Flex component (preferred long-term).composer.json) and confirm v3.x compatibility.Split components in Forms/Infolists to identify migration candidates.composer require kingmaker/filament-flex-layout
Split with Flex in target components:
use Kingmaker\FilamentFlexLayout\Components\Flex;
Flex::make()
->schema([
TextInput::make('first_name')->grow(false),
TextInput::make('last_name')->grow(false),
])
->horizontalArrangement(HorizontalArrangement::SpaceBetween)
->gap(20),
Flex.grow(false) requirement in component templates.Split usage.Flex components may require explicit grow(false) on all children.Flex for all multi-column forms").Flex improvements.grow(false) on children.!important overrides).SpaceBetween, Center).Flex vs. Split tradeoffs.grow(false) requirement.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Filament v4+ upgrade | Package becomes obsolete | Plan migration to native Flex |
Missing grow(false) |
Children ignore alignment | Lint for grow(false) in PR checks |
| Custom CSS overrides Flexbox | Layout breaks | Audit CSS for !important conflicts |
Nested Flex components |
Unpredictable alignment | Test nested scenarios in QA |
| Filament bug affects Flexbox | Layout rendering issues | Monitor Filament releases for fixes |
Flex with 2 TextInputs).How can I help you explore Laravel packages today?