I have a relationship between two models, Customer and User, called Representatives. From the Customer resource, users should be able to attach/detach User resources. I have followed all of the steps for installation, and other permissions are working, but the button for attach is not appearing, despite the user having permissions to attach representatives. They DO however have the ability to detach representatives.
From my Customer nova resource:
use \Insenseanalytics\LaravelNovaPermission\PermissionsBasedAuthTrait;
public static $permissionsForAbilities = [
...
'attachUser' => 'attach representatives to customers',
'detachUser' => 'detach representatives from customers',
...
];
The relationship itself from the nova resource (there is a pivot table in between that has a secondary field with a foreign key specifying the representative type):
And an image of what I'm actually seeing in the nova crud we have:
If you have any suggestions or need any additional information, would be happy to provide it. I've tried everything I can think to try to get the button to appear.
Hi!
I have a relationship between two models, Customer and User, called Representatives. From the Customer resource, users should be able to attach/detach User resources. I have followed all of the steps for installation, and other permissions are working, but the button for attach is not appearing, despite the user having permissions to attach representatives. They DO however have the ability to detach representatives.
From my Customer nova resource:
The relationship itself from the nova resource (there is a pivot table in between that has a secondary field with a foreign key specifying the representative type):
And an image of what I'm actually seeing in the nova crud we have:
If you have any suggestions or need any additional information, would be happy to provide it. I've tried everything I can think to try to get the button to appear.
Thanks!