$students = User::whereHas( 'roles', function($q){ $q->where('name', 'Teacher'); } )->get();. This should get you the users, but only where they ...
確定! 回上一頁