manyToMany attach shows without trashed checkbox #4095
Unanswered
gepopp
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version 9.1
Nova Version: 4.2.6
PHP Version: 8.1
I have a manyToMany relation between users and speeches with a pivot table with the columns:
the pivot model looks like:
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
Relations in the models are declared like:
User (supports soft deletes):
the speech model (supports soft delets):
in the nova resources the fields are declared as follows:
User:
Speech:
if i now go to user and click on Attach Speech it shows the "with trashed" chackbox beneath the search field:

same thing the other way arround when i go to a speech and attach speaker,
if i try to add the withoutTrashed() to the BelongsToMany i get the error
Method Laravel\\Nova\\Fields\\BelongsToMany::withoutTrashed does not exist.
Originally posted by @gepopp in #4092 (comment)
Beta Was this translation helpful? Give feedback.
All reactions