Amer Almoghrabi
Amer Almoghrabi
FFilament
Created by Amer Almoghrabi on 7/1/2024 in #❓┊help
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
FFilament
Created by Amer Almoghrabi on 6/23/2024 in #❓┊help
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
FFilament
Created by Amer Almoghrabi on 6/12/2024 in #❓┊help
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
FFilament
Created by Amer Almoghrabi on 6/6/2024 in #❓┊help
How do I add data to two tables in one form submission using filament?
Hello @all , Im looking for the best practice to handle two models create/update in one form submission noting that the second model is belongs to the first one. Thanks
6 replies