Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set label for Slug field #9

Closed
webspilka opened this issue Jan 16, 2019 · 1 comment
Closed

Set label for Slug field #9

webspilka opened this issue Jan 16, 2019 · 1 comment
Assignees

Comments

@webspilka
Copy link

Hi
this code works:

TextWithSlug::make('Название', 'name')
    ->slug('Slug'),
Slug::make('Slug'),

but this not works:

TextWithSlug::make('Название', 'name')
    ->slug('slug'),
    // or 
    // ->slug('Slug'),
Slug::make('Ярлык', 'slug'),

how to set label 'Ярлык' for Slug field ?

@drobee
Copy link
Contributor

drobee commented Feb 15, 2019

The parameter of the slug() method needs to refer to the name of the Slug field:

TextWithSlug::make('Название', 'name')
    ->slug('Ярлык'),
Slug::make('Ярлык', 'slug'),

benjaminhirsch added a commit that referenced this issue Apr 21, 2019
@benjaminhirsch benjaminhirsch self-assigned this Apr 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants