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', '<>', 1)->paginate(15);
        return view('users.list', compact('user'));
    }
public function index ( ) { $ user = User :: where ( 'id' , '<>' , 1 ) -> paginate ( 15 ) ; return view ( 'users.list' , compact ( 'user' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .