Find query error please help

Hi,

I writer query to get all data from database using this $listingcategories = ListingCategories::find($parameters);

its getting all records correctly but when its fetching each records everytime its runing the application fully how to stop this?

$listingcategories = ListingCategories::find($parameters); returns a cursor that retrieves one record at time, it does not mean it makes several queries