nova-sluggable icon indicating copy to clipboard operation
nova-sluggable copied to clipboard

SluggableText field did not show when using with Nova 4.

Open soap opened this issue 2 years ago • 11 comments

After upgrade from Nova 3 to Nova 4, sluggable filed did not show. It was not displayed on all views. Any suggestion?

image

PHP 8.0.12 on Windows 10 (Development Environment) Laravel 9.13.0

soap avatar May 25 '22 04:05 soap

I have the same issue. Was anybody able to fix this issue?

arifktk32 avatar Jun 24 '22 06:06 arifktk32

I also have the same issue.

mathamel avatar Jul 08 '22 05:07 mathamel

Hi everybody, I've unsuccessfully tried to upgrade the package to Vue3. I don't have too much free time these days so I can't promise anything. Any PRs are welcome.

drobee avatar Jul 08 '22 05:07 drobee

Not sure if fully functional (copied from another nova package)

"repositories": {
        "nova-sluggable": {
            "type": "vcs",
            "url": "https://github.com/TheNerka/nova-sluggable"
        }
}
    
composer require drobee/nova-sluggable:master

TheNerka avatar Jul 08 '22 09:07 TheNerka

@TheNerka Works for me! Thanks!

daanadriaan avatar Jul 14 '22 12:07 daanadriaan

My composer.json already has the following section:

"repositories": [
        {
            "type": "composer",
            "url": "https://nova.laravel.com"
        }      
    ],

Now when I try and do this I get syntax errors:

"repositories": [
        {
            "type": "composer",
            "url": "https://nova.laravel.com"
        },
        {
            "nova-sluggable": {
                "type": "vcs",
                "url": "https://github.com/TheNerka/nova-sluggable"
            }
        }
    ],

Any clues what formatting part of composer.json I don't understand?

Can anyone confirm this fix actually still works? Thinking maybe it can be merged?

EDIT:

I can confirm it's working with Nova 4.

I simply removed nova-sluggable to make the array flatter so I don't think that part is needed on my system. Afterwards it appeared to not work because I had to control F5.

I looked at the code changes, it seems like a straightforward conversion from Vue 2 to Vue 3: https://github.com/drobee/nova-sluggable/compare/master...TheNerka:nova-sluggable:master

Would be super nice to have that code merged because this package is really useful.

eugenefvdm avatar Oct 13 '22 05:10 eugenefvdm

composer require drobee/nova-sluggable:master

The command does not work: you have to do : composer require drobee/nova-sluggable:dev-master

Anthony2511 avatar Feb 14 '23 10:02 Anthony2511

This is built into Nova 4 now:

Slug::make('Slug')->from('Title'),

https://nova.laravel.com/docs/4.0/resources/fields.html#slug-field

eugenefvdm avatar Oct 27 '23 15:10 eugenefvdm