Commit 050dc1a6 by Alfiro Pratama

Add where User Tendik

parent 9ac8603a
......@@ -20,7 +20,7 @@ class UserController extends Controller
{
$data['title'] = 'Daftar User';
$data['users'] = User::with(['rBiodata','rolesCustom'])->whereHas('rolesCustom',function ($q){
$q->whereIn('name', ['dosen','reviewer']);
$q->whereIn('name', ['dosen','reviewer','tendik']);
})->where('status', '1')->get();
$data['roles'] = Role::whereIn('name', ['reviewer', 'operator'])->orderBy('name')->get();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment