-
Description:Following this documentation for the actions when using an Action in standalone mode and Policy for a model with a Detailed steps to reproduce the issue on a fresh Nova installation:
public function actions(NovaRequest $request)
{
return [
(new Actions\ActionName)->standalone(),
];
}
public function runAction(Model $model, $action): bool
{
return false;
}
Expected result:
Actual result:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Laravel Policy can only be executed against a model and standalone action doesn't have any model to check against. |
Beta Was this translation helpful? Give feedback.
-
|
@crynobone looks like |
Beta Was this translation helpful? Give feedback.
Laravel Policy can only be executed against a model and standalone action doesn't have any model to check against.