Action utility injection
The vast majority of methods used to configure actions accept functions as parameters instead of hardcoded values:Injecting the current modal form data
If you wish to access the current modal form data, define a$data parameter:
Injecting the current arguments
If you wish to access the current arguments that have been passed to the action, define an$arguments parameter:
Injecting the current Livewire component instance
If you wish to access the current Livewire component instance that the action belongs to, define a$livewire parameter:
Injecting the current action instance
If you wish to access the current action instance, define a$action parameter: