Download the PHP package byjesper/laravel-custom-fields-filament without Composer

On this page you can find all versions of the php package byjesper/laravel-custom-fields-filament. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-custom-fields-filament

Laravel Custom Fields — Filament

Filament v5 admin UI for byjesper/laravel-custom-fields.

Plug-and-play resources, form components, and table columns for managing custom field definitions and editing per-record values inside any Filament panel.

What's included

Requirements

Installation

Make sure the core package is installed and migrated (see its README).

Register the plugin

In your panel provider:

This registers CustomFieldDefinitionResource in the panel — admins can now manage definitions at /admin/custom-field-definitions.

Editing custom fields on your own resources

Inside any Filament resource form, drop in the generated schema for that entity:

Fields are namespaced under custom.* (e.g. custom.lifetime_value) so they don't collide with native model attributes. Use the HandlesCustomFieldFormData trait on your Create/Edit pages to shape and validate the payload before saving:

The custom_field_values column is observed by the core package, which mirrors changes into custom_field_index_values on save.

Displaying custom fields in infolists

Use the read-only counterpart on a View/detail page. Pass the displayed model so the component can read values through the core package's getCustomFieldValue() accessor:

The infolist is display-only. It does not apply form defaults or conditional visibility rules, so a field hidden by a form condition remains visible on the detail page in this release.

Showing custom fields in tables

The helper picks a sensible column type per field type — IconColumn for booleans, TextColumn for everything else — and resolves select labels and relationship display fields automatically. All custom-field columns are toggleable() so they can be hidden from the column picker by default if the list is long.

Filtering by custom fields

Field-type → Filament component mapping

Field type Component
string TextInput
text Textarea (4 rows)
integer TextInput numeric
decimal TextInput numeric, step from config.scale
boolean Toggle
date DatePicker
datetime DateTimePicker
time TimePicker
date_range Fieldset with two DatePicker fields
datetime_range Fieldset with two DateTimePicker fields
time_range Fieldset with two TimePicker fields
select / enum Select with options from config.options
multi_select CheckboxList
relationship searchable Select pulling from custom-fields.relationships.targets
json Textarea with JSON encode/decode

CustomFieldInfolist maps the same types to read-only entries: booleans use icons; dates and times use Filament's display formatting; select values and relationships resolve to labels; multi-select values render as badges; text and JSON values span the full width.

Type configuration

The definition resource exposes type-specific configuration supplied by the core package. For temporal fields this currently includes:

Date, datetime, time, and their range variants expose type-aware validation controls for required, fixed min / max, and relative date/datetime bounds. Relative date rules use the today anchor; relative datetime rules use now. Time fields intentionally support fixed bounds only.

Conditional visibility

Forms generated by CustomFieldForm::make() automatically wire each field's conditional_visibility rules into Filament's reactive visible(fn (Get $get) => ...) callbacks — no extra setup. For server-side enforcement (e.g. preventing values from being saved for hidden fields), use the included ConditionalVisibility rule.

Grouping

Definitions are rendered into a two-level layout:

Definitions with no group_level_1 are emitted at the top level.

Development

The following Composer scripts are available for local quality checks:

The composer test aggregate runs the full package quality gate: lint, type-check, type coverage, unit tests, parallel tests, and integration tests.

License

MIT — see LICENSE.md.


All versions of laravel-custom-fields-filament with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
filament/filament Version ^5.0
illuminate/support Version ^13.0
byjesper/laravel-custom-fields Version ^2.0 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package byjesper/laravel-custom-fields-filament contains the following files

Loading the files please wait ...