It might be worth checking out this package, which is for Laravel Nova and Spatie permissions package: https://github.com/vyuldashev/nova-permission#:~:text=A%20Laravel%20Nova%20tool%20for%20Spatie's%20laravel%2Dpermission%20library,-Installation&text=This%20is%20typically%20done%20in%20the%20tools%20method%20of%20the%20NovaServiceProvider%20.&text=If%20your%20User%20could%20have,pick%20a%20single%20role%20from.
Attach hasMany resource on update
Hi, I just read the nova docs resource section from "the basics" to "Authorization". I miss one thing, or maybe did not see it. There is a way to make Relations with HasMany::make('Roles') in fields. I use spatie permissions and i would like to give the admin the possiblity to attach roles to a user. Now i only see the roles on users index. But I want to attach roles to user in update section. I read https://nova.laravel.com/docs/3.0/resources/relationships.html#creating-inline-relations but is that only for belongsto? I have hasMany and nothing is shown in my form, when I add ->showCreateRelationButton() to my filed.
Please or to participate in this conversation.