vyuldashev / nova-permission

A Laravel Nova tool for Spatie's laravel-permission library
https://novapackages.com/packages/vyuldashev/nova-permission
419 stars 217 forks source link

Hardcoded user name field trying to attach user to a role from Nova resource #178

Closed viktorasbuivydas closed 2 years ago

viktorasbuivydas commented 2 years ago

Shouldn't user field value be dynamic? I am having a problem in my project where I need to find a user by username or email. In the package it is using name field which I don't have in my table.

viktorasbuivydas commented 2 years ago

Stupid me, just found a solution. For anyone having similar problem make changes inside Nova User resource file and don't forget to update $search variable field values. I just had default values and forgot to change it.