How to disable edit/delete button on nova index page and still allow in detail page, if I will create a policy, that will disable the operation everywhere, I want to allow edit and delete in detail page, but just want to remove those button from index,
is doing something like
public function update(User $user, Customer $customer)
{
if ( request()->route()->getName('route-name') ) {
return false;
}
}
is correct way or there is any better way?
edit
authorization policy. That's not what the user asked. The user asked to keep the policy but hide the button only. – Orotund