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

Is not compatible with Nova v4.32.14 #255

Open
andevit opened this issue Apr 4, 2024 · 3 comments
Open

Is not compatible with Nova v4.32.14 #255

andevit opened this issue Apr 4, 2024 · 3 comments
Labels
needs input Waiting for the reporter to reply.

Comments

@andevit
Copy link

andevit commented Apr 4, 2024

Please can you upgrade?

@KasparRosin
Copy link
Member

@andevit Is this still an issue and could you elaborate?
I' using it along the latest nova and it's working.

@KasparRosin KasparRosin added the needs input Waiting for the reporter to reply. label Jul 16, 2024
@ColisSan
Copy link

ColisSan commented Sep 30, 2024

I also encountered an issue while using the newest (4.35.2) nova version.
The issue happens when I try to assign a model to another model. (In my case a Permission to a Role).
The view works ok. On detail, I get a list of permissions that were attached to the Role model.

Until I downgraded my laravel-nova version from 4.35.2 to 4.35.0 I kept getting 404 from the nova-api route that returns the queried values.

I'm using the Multiselect field on my Role nova resource:

public function fields(NovaRequest $request)
{
    return [
        Text::make('Ime', 'name'),
        HasMany::make('Korisnici', 'users', User::class),
        Multiselect::make('Dozvole', 'permissions')->options(Permission::pluck('name','id'))->belongsToMany(NovaPermission::class)
    ];
}

The Role and Permission models are just extended models from Spatie/laravel-permissions, but barely have any code except for static properties in Role model. (This occurs also in my other models)

I noticed the 404 error gets thrown during the invocation of the Laravel\Nova\Http\Controllers\AssociatableController, as if it doesn't recognize the property as my model's property.

Hope this helps. As I mentioned, I "fixed" this by downgrading the laravel-nova version to 4.35.0

@vilhelmjosander
Copy link

I have exactly the same problem. Downgrading to 4.35.0 resolves the issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs input Waiting for the reporter to reply.
Projects
None yet
Development

No branches or pull requests

4 participants