Download the PHP package peltonsolutions/filament-common without Composer
On this page you can find all versions of the php package peltonsolutions/filament-common. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peltonsolutions/filament-common
More information about peltonsolutions/filament-common
Files in peltonsolutions/filament-common
Package filament-common
Short Description A custom package for Filament that provides common enhancements used throughout peltonsolutions packages.
License MIT
Homepage https://github.com/peltonsolutions/filament-common
Informations about the package filament-common
filament-common
A utility package by Pelton Solutions that provides shared interfaces, models, Filament table columns, form components, and translations used across the Pelton Solutions package ecosystem.
Requirements
- PHP ^8.4
- Laravel ^11.0 | ^12.0 | ^13.0
- Filament ^5.0
Install
The service provider is auto-discovered and registers the package's translation files automatically.
What's Included
Interfaces
Define contracts your Eloquent models can implement:
| Interface | Method(s) |
|---|---|
HasDateOfBirth |
getDateOfBirth() |
HasEmail |
getEmail() |
HasFilamentUrl |
getFilamentUrl() |
HasName |
getName() |
HasPhoneNumber |
getPhoneNumber() |
HasTenant |
whereTenantUuid(), tenant() |
HasTenantCompany |
company() |
HasTenantGroup |
whereTenantUuid() |
HasTenants |
whereTenantUuid(), tenants() |
HasTimezone |
getTimezone() |
Models
Tenant — Base Eloquent model with UUID primary key (uuid).
PaginatorWithPageInPath — Extends LengthAwarePaginator to embed the page number in the URL path (/items/page/2) instead of a query string parameter.
Filament Table Columns
Pre-configured TextColumn subclasses that format timestamps using the authenticated user's timezone (if they implement HasTimezone) and the active locale:
CreatedAtColumn— sortable, hidden by defaultUpdatedAtColumn— sortable, hidden by defaultDeletedAtColumn— sortable, hidden by default
Filament Form Components
Pre-configured TextInput subclasses that display read-only timestamp fields on view pages:
CreatedAtView— visible on view pages onlyUpdatedAtView— visible on view pages only
LinkedFieldView — Abstract TextInput for displaying a related record's name with a link to its Filament view page. Extend it and implement three methods:
Translations
Translations are published under the pelton-solutions-common namespace. Supported locales: en, pt_BR.
Files: buttons, date_formats, fields, notifications, resource.
Testing
Tests are written with Pest.
Security
If you discover a security vulnerability, please email [email protected] rather than using the issue tracker.
Credits
License
filament-common is open-sourced software licensed under the MIT license.
All versions of filament-common with dependencies
filament/filament Version ^5.0
laravel/framework Version ^11.0|^12.0|^13.0