I am doing:
User::all();
to get all the users from users table. I want to select all the users except current logged in user. How should I
If you are using the Auth helper, use this.
User::where('id', '!=', Auth::user()->id)->get();