Skip to content
Advertisement

Laravel query results not display on the blade properly

In my laravel application, I’m trying to display some records on my blade.

Following is my Controller function related to this issue.

JavaScript

And I’m trying to display those data on my blade, following is my blade part.

JavaScript

But now the issue is with,

JavaScript

This can have 1 or more results.

But, even though it has more results, every time this will display only one result on my blade.

And any of the time it won’t display the

JavaScript

But when I DD it shows me all the results…

Advertisement

Answer

I found an answer for this, I just changed my query into this

JavaScript

and now It displays all the records, still have no idea why the previous

JavaScript

was failing.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement