Skip to content

Multilingual slug#75

Description

@Daaaaad

Hello 馃憢

I have a multilingual slug in Nova and I would like to ensure that the slug will be unique.

Traditionnal rules do not work in this multilingual context:

Slug::make('Slug') ->from('Title') ->rules('required') ->creationRules('unique:blog_posts,slug') ->updateRules('unique:blog_posts,slug,{{resourceId}}') ->hideFromIndex(),

How to do it?

Regards,

David.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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