Skip to content

Filament support #25

Closed
Closed
@mahfoudfx

Description

@mahfoudfx

Hello,
I tried to use this great package with Filament which handles translations using spatie/nova-translatable in a simple way like Laravel Nova, unfortunately this is not working (allowing duplication).

Laravel Nova

Text::make(__('Slug'), 'slug')
  ->creationRules('unique_translation:posts,slug')
  ->updateRules('unique_translation:posts,slug,{{resourceId}}');

Filament (assumed and tested)

Forms\Components\TextInput::make('slug')->required()
  ->rules(['unique_translation:posts,slug']),
  1. Is there any planned release to support Filament?
  2. Awaiting for an official support, what would be the cleanest way to use it with Filament?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions