Update InteractsWithActions.php

This commit is contained in:
Dan Harrin
2023-01-07 12:47:58 +06:00
parent 08c98e8345
commit cac64207df
@@ -260,6 +260,10 @@ trait InteractsWithActions
return $action;
}
if (! method_exists($this, $name)) {
return null;
}
$action = Action::configureUsing(
Closure::fromCallable([$this, 'configureAction']),
fn () => $this->{$name}(),