nova-flexible-content icon indicating copy to clipboard operation
nova-flexible-content copied to clipboard

Error when using Slug field

Open dakala opened this issue 2 years ago • 7 comments

I've got this code:

Flexible::make('Practitioner types', 'practitioner_types')
            ->addLayout('Practitioner type', 'practitioner_type', [
                Text::make('Label', 'label'),
                Slug::make('Slug')->from('Label')
            ])
            ->collapsed()
            ->button('Add practitioner type'),

The slug field doesn't work and I get an error. See the screenshot please:

Screenshot_2022-05-13_at_07_54_34

What is the problem and how do I fix it please? Does it matter that I'm trying to do this with https://github.com/outl1ne/nova-settings ?

dakala avatar May 13 '22 07:05 dakala