Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User::all();
- User::where('id','!=',$currentUser->id)->get();
- $users = User::where('id', '!=', auth()->id())->get();
- $users = User::all()->except(Auth::id());
- $users = User::all()->except($currentUser->id);
- User::where('id', '!=', Auth::user()->id)->get();
Add Comment
Please, Sign In to add comment