Laundry basket with foldaway legs