editOptionForm with permissions

Hi,

I have a select form component which uses a relationship to look at another model. I use editOptionForm to create a modal so that I can edit the selected field. This all works fine.

However, I would like the edit button to only show for certain users (which I'll manage with spatie) - but I'm not sure how to make the button show / hide?

Any ideas?

Thanks
Was this page helpful?