v3.0.0 — Filament v5
Highlights
Filament v5 support. Full compatibility with Filament v5, PHP 8.2-8.5, and Laravel 11, 12, and 13. All tested in CI.
New titleField parameter. Pass any Filament field as the title input instead of the default TextInput. The main use case is translatable title fields from packages like Spatie's Laravel Translatable, but it works with any field:
TitleWithSlugInput::make(
titleField: \Spatie\FilamentTranslatable\Forms\Components\TranslatableInput::make('title'),
)Slug auto-generation is wired onto your field automatically. Any afterStateUpdated callbacks you've already set on the field are preserved.
No build step. The Tailwind compilation requirement is gone. Styles ship as plain CSS and are registered automatically via Filament's asset system. Remove any CSS imports or Tailwind config entries you had for this package.
New namespace. The package now uses its own namespace:
// Before (v1.x / v2.x)
use Camya\Filament\Forms\Components\TitleWithSlugInput;
// After (v3.x)
use Blendbyte\FilamentTitleWithSlug\TitleWithSlugInput;Bug fixes
- Readonly mode: visit link was rendered without checking whether a record URL actually exists, producing a null
hrefwhen there was no record slug. getRecordUrl(): visit link route closure was evaluated twice. Fixed to reuse the result.
Upgrading
The one breaking change in all upgrade paths is the namespace above. The TitleWithSlugInput::make() call signature and all parameter names are unchanged.
Full instructions are in the README.
Requirements
| Filament | PHP | Laravel |
|---|---|---|
^5.0
| ^8.2 - ^8.5
| ^11 / ^12 / ^13*
|
*PHP 8.2 is not tested against Laravel 13.