Created
January 30, 2020 11:25
-
-
Save webbash/d0e286a6e3cb9e9285f06e09a33d1416 to your computer and use it in GitHub Desktop.
Фикс Action в Laravel Nova - конфликт canSee и canRun когда используешь showOnTableRow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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