app/Http/Controllers/UserController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $user = User::where('id', '!=', Auth::user()->id)->get()->all();
        return view('user.index')->with('user',$user);
    }
public function index ( ) { $ user = User :: where ( 'id' , '!=' , Auth :: user ( ) -> id ) -> get ( ) -> all ( ) ; return view ( 'user.index' ) -> with ( 'user' , $ user ) ; }
Display a listing of the resource.
Display a listing of the resource .