How to get $data in Tables\Actions\CreateAction::make()?
I used to get the $data in the form using
->before(function (RelationManager $livewire, array $data, Tables\Actions\CreateAction $action) {
if ($data['total'] > 0) {
But it doesn't work now, probably since some upgrade.
This is a Table inside a RelationManager.
Any help?
->before(function (RelationManager $livewire, array $data, Tables\Actions\CreateAction $action) {
if ($data['total'] > 0) {
But it doesn't work now, probably since some upgrade.
This is a Table inside a RelationManager.
Any help?