The Encore Digital Group Filament Helpers package is a collection of pre-built Filament components that we find ourselves frequently using. Rather than constantly rebuilding the same component across multiple resources and projects, we centralized these common configurations into a single shared package. Each helper class method returns a pre-configured Filament component that can be used in your resource classes. Because the helper classes return a Filament component, you can chain additional method calls to further configure the component as needed.
To install the Filament Helpers package, you can use Composer:
composer require encoredigitalgroup/filament-helpers
The only change between v1 and v2 is a slight namespace change. v1 used EncoreDigitalGroup\FilamentHelpers
. v2 now uses EncoreDigitalGroup\Filament\Helpers
. This
change was made to make this package consistent with other packages Encore Digital Group has. A simple find and replace will work for this upgrade as there are no other
changes, breaking or otherwise, in this release.
The EncoreDigitalGroup\Filament\Helpers\Forms\GroupSection
class had the following modifications:
The make()
method now only has one parameter: $schema
. No changes are required for use of this parameter.
$render
parameter has been removed. Use of make($schema)
automatically renders the component.$fluent
parameter has been removed. Use GroupSection::fluent($schema)
instead.$innerColumns
parameter has been removed. Use GroupSection::fluent($schema)->innerColumns($int)
instead.$outerColumns
parameter has been removed. Use GroupSection::fluent($schema)->outerColumns($int)
instead.$innerColumnSpan
parameter has been removed. Use GroupSection::fluent($schema)->innerColumnSpan($int)
instead.$outerColumnSpan
parameter has been removed. Use GroupSection::fluent($schema)->outerColumnSpan($int)
instead.The fluent()
method has been added:
render()
to render the component.DateTimePicker::make('start_date');HourSelector::make('start_time', 'Start Time');NumericScale::make('rating', 'Rating');PercentScale::make('discount', 'Discount');TextInput::make('first_name', 'First Name')
This helper takes two arguments:
This helper takes two arguments:
This helper takes two arguments:
This helper takes two arguments:
This helper takes two arguments:
Marc Beinder is a self-taught developer who loves PHP. He started using Laravel in 2023 on Laravel v10.15 and started using Filament as soon as v3.0 was released. Most of Marc's open-source work is published through his business GitHub.
Marc likes to focus on creating exceptional experiences and believes this starts in the code.