Exemple #1
0
 public function adminIndex(User $user)
 {
     $userRoles = $user->roles()->lists('role_id')->toArray();
     $roles = Role::whereNotIn('id', $userRoles)->latest()->lists('name', 'id');
     return view('admin.role.index', compact('user', 'roles'))->with(['title' => 'User Role Management']);
 }