public function index() { $users = User::all(); return view('users.index', compact('users')); }
public function edit(Group $group) { $group_users = $group->users()->get(); $users = User::all()->diff($group_users); return view('groups.edit', compact('group', 'users')); }