drobee / nova-sluggable

Slug field for Laravel Nova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SluggableText field did not show when using with Nova 4.

soap opened this issue · 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

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

I also have the same issue.

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.

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 Works for me! Thanks!

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:
master...TheNerka:nova-sluggable:master

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