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
Use Auth; Use App\User; public function index() $id = Auth::id(); $result = User::where('id', '!=', $id)->get(); dd($result);