Two ways editing for a relationship in one form select

I have AccountResource that has field for Support accounts (multiple) belongsToMany Account using pivot table (account_linkings) which has account_id and linked_account_id in my Account model i have the below two relations: public function account_linkings(): BelongsToMany { return $this->belongsToMany(Account::class, 'account_linking', 'account_id', 'linked_account_id'); } public function original_accounts() { return $this->belongsToMany(Account::class, 'account_linking', 'linked_account_id', 'account_id'); } i need to edit the support field in each account for two ways (the two relations) together in one field
1 Reply
Amer Almoghrabi
Amer AlmoghrabiOP6mo ago
Any one can help?
Want results from more Discord servers?
Add your server