Posts by Daislan • 11 points
2 posts
-
0
votes2
answers501
viewsA: I cannot use the foreach with object twice in the same view in the Laravel
I finally solved the problem! It is because in the first foreach I assigned the variable $cities to my object $cities so in the second foreach it was catching variable $cities and not object…
-
1
votes2
answers501
viewsQ: I cannot use the foreach with object twice in the same view in the Laravel
I have a big problem that I can’t solve because I’m still a beginner in Laravel. The problem is I’m developing a web application and I need to list the cities object in two different select, but…