I'm trying to select all users for a company. But only users who has "admin" role status (Entrust, etc.).
User::where('company_id', Auth::user()->company_id)->hasRole('admin')->get();
The above is throwing an error. Left a bit lost on how to run such a query. Where am I going wrong with this? Very little documentation on Entrust.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Nh2y6z
via IFTTT
Aucun commentaire:
Enregistrer un commentaire