Skip to content

v0.5.2

Compare
Choose a tag to compare
@camya camya released this 14 Nov 10:46
· 52 commits to main since this release

What's Changed

Added

  • Added parameters titleAfterStateUpdated & slugAfterStateUpdated to hook into afterStateUpdated with a closure. (see #3)
  • Placeholder now generated with str()->headline() method internally instead of title() for more beautiful placeholders. (Can be overwritten)

Added (for Development)

  • Added "Pest Tests" for the Filament Component, thanks to ralphjsmit for inspiration.
  • Added GitHub workflows for "Pest Tests" + "Laravel Pint".
  • Added "composer test-all" now runs Pest Test + PHPStan + Laravel Pint CS-checker (dry).

Fixed

  • Removed duplicate unique() in SlugInput, see #4
  • Optimized slugAutoUpdateDisabled, check record instead of slug.
  • slugify() optimized

About

This package for FilamentPHP adds the form component TitleWithSlugInput which allows editing titles and slugs easily. It is inspired by the classic WordPress title & slug implementation.

\Camya\Filament\Forms\Components\TitleWithSlugInput::make(
    fieldTitle: 'name',
    fieldSlug: 'identifier',
)