laravel-pivot-softdeletes
laravel-pivot-softdeletes copied to clipboard
Not compatible with Nova
👋 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.
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.