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

Not compatible with Nova #18

Open
jmverges opened this issue Apr 4, 2023 · 1 comment
Open

Not compatible with Nova #18

jmverges opened this issue Apr 4, 2023 · 1 comment

Comments

@jmverges
Copy link

jmverges commented Apr 4, 2023

👋 Hello,

I'm using this package and it works great with my own controller and so but I just found when detaching from Nova the softdeletes are not used at all. Anyone experienced the same?

Many thanks.

@jmverges
Copy link
Author

jmverges commented Apr 5, 2023

For future me:

this is solved it.

return $this->belongsToMany(\App\Models\YourModel::class, 'models_models')->using(\DDZobov\PivotSoftDeletes\Relations\Pivot:class)->withSoftDeletes();

Maybe readme could mention Nova will need explicit pivot class assigned, even if it is the default one provided by this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant