Replies: 1 comment 1 reply
|
Nevermind, I found another way out |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
filament/packages/panels/src/Resources/Resource.php
Lines 162 to 195 in 808cfda
Looking through the filament code, there are some generic policy handling methods such as
can(...)andauthorize(...).Can we reuse these to introduce our own actions which can be controlled by a custom method in our policy file? e.g. add
function cancel(...)to policy to control if thecancelaction is shown or not.All reactions