Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save webbash/d0e286a6e3cb9e9285f06e09a33d1416 to your computer and use it in GitHub Desktop.
Save webbash/d0e286a6e3cb9e9285f06e09a33d1416 to your computer and use it in GitHub Desktop.
Фикс Action в Laravel Nova - конфликт canSee и canRun когда используешь showOnTableRow
(new ActionName())
->canSee(function () {
return ! $this->resource->exists || ($this->field === 'some') === true;
})
->canRun(function () {
return true;
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment