Zdobądź użytkownika z rolą laravel
$students = User::whereHas(
'roles', function($q){
$q->where('name', 'Teacher');
}
)->get();
Quaint Quail
$students = User::whereHas(
'roles', function($q){
$q->where('name', 'Teacher');
}
)->get();