kejpa
48
10
General

@foreach loops more times than the query answers

Posted 8 months ago by kejpa

Hi, just getting started and the first view is making me have second thoughts about Laravel... I have a query which returns three rows (I echoed the sql and run it my self) but when I do a @foreach on the result it loops far too many times (22!) And I can't use the loop variable for showing the result, when I try I get an "Undefined property" error no matter what I write :(

Help, please! /Kjell

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.