skip to Main Content

Check if the character exists in the collection laravel

I have a CSV file with zip codes. Some cities have only one zip code whereas some have multiple zip codes. istat;municipality;region;province_abbreviation;province;zip_code_check;zip_code;lat;lng 60006;Anagni;Lazio;FR;Frosinone;"03012";"03012";41.74393633;13.15452041 67002;Ancarano;Abruzzo;TE;Teramo;64010;64010;42.83680898;13.74139609 42002;Ancona;Marche;AN;Ancona;60121-60131;60121;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60122;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60123;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60124;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60125;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60126;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60127;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60128;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60129;43.61675973;13.51887537 42002;Ancona;Marche;AN;Ancona;60121-60131;60131;43.61675973;13.51887537 I am getting these in the…

VIEW QUESTION

Collection column exists, but somehow doesn't at the same time – Laravel

i am at this error for some hours now, and i cant resolve it by myself. this is the code: $repeated_entry = Product_Market::where('produto_id', '=', $product->id) ->where('market_id', '=', $market->id)->get(); $repeated_entry_update = Product_Market::where('produto_id', '=', $product->id) ->where('market_id', '=', $market->id); if($repeated_entry->count()) { $repeated_entry_update->update(['amount_requested' =>…

VIEW QUESTION
Back To Top
Search