Amer Almoghrabi
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
2 replies
delete action confirmation: add a check box if the user wants to delete associated relations or not
For example i have the below scenario noting that i have account resource which has one to many relationship with contacts (contacts is the child).
When deleting an account, can I add a check box if the user wants to delete associated contacts or not?!
3 replies
Hello! When navigation menu item has sub items it cannot be positioned before the single items
I'm trying to position the menu navigation item that has sub items to be second one after dashboard but it always goes to the last after the other single menu items
2 replies