I'm using Laravel 5.1.*. Installed defender and created my role 'admin'...But when will using the middleware 'needsRole' (in routes.php) or 'Defender::hasRole('admin')' (in controller) not working.
Message error
BadMethodCallException in Builder.php line 2093:
Call to undefined method Illuminate\Database\Query\Builder::hasRole()