Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

undefined hasRole() #898

Open ghost opened 6 years ago

ghost commented 6 years ago

I was trying to use @role('role') as suggested in the documentation but got the following error Call to undefined method Illuminate\Database\Query\Builder::hasRole().

pitylee commented 6 years ago

Same here!