drobee / nova-sluggable

Slug field for Laravel Nova
MIT License
45 stars 23 forks source link

SluggableText field did not show when using with Nova 4. #31

Open soap opened 2 years ago

soap commented 2 years ago

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

arifktk32 commented 2 years ago

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

mathamel commented 2 years ago

I also have the same issue.

drobee commented 2 years ago

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.

TheNerka commented 2 years ago

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
daanadriaan commented 2 years ago

@TheNerka Works for me! Thanks!

eugenefvdm commented 1 year ago

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.

Anthony2511 commented 1 year ago

composer require drobee/nova-sluggable:master

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

eugenefvdm commented 10 months ago

This is built into Nova 4 now:

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

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

kryakunov commented 1 month ago

Теперь это встроено в Nova 4:

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

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

Does this work for you? I can't get autocomplete for the slug using ->from('title')

mhmdhabibessa commented 5 days ago

any update about this issue ?

TheNerka commented 5 days ago

any update about this issue

Try my fork