shebaoting
How to Use mutateFormDataBeforeFill or mutateFormDataBeforeSave for Related Data in Relationships
I have two models, a
Customer
associated with multiple Contacts
. When adding a Customer
, I use Repeater::make('contacts')->relationship('contacts')->schema()
to add related data. How can I use mutateFormDataBeforeFill
or mutateFormDataBeforeSave
for Contact
data when creating and editing a Customer
?3 replies
Shield the plugin, how do I control the roles menu to only show up in one panel, but the permissions
I have 3 panels, admin, operation and customer, do I need to set this code for all 3 panels for the permissions to take effect?
If I set this code in all 3 panels, it will result in the roles menu appearing on the left side of all 3 panels. I only want the roles menu to appear in the admin panel, but the permissions set are valid in all panels. What should I do?
2 replies
Modal Blade component has a problem with Nesting Components
Package
Other
Package Version
v3.0.0
How can we help you?
parent component
child component
In showLost(), the value of $this->opportunityId is available, but the value of $this->opportunityId is not available in onLost(), it is null
If Nesting Components is not used. then everything is fine.
May I ask how this problem can be solved? Is it a bug?
2 replies