Support the ongoing development of Laravel.io →
Blade Authentication Eloquent
Last updated by @ajax30 2 years ago.
0

What causes this bug? it seems like the comments section doesn't have array/collector data.

What is the easiest fix? Just use the get method to make it happen

$comments = Comment::where('article_id', $article->id)->orderBy('id', 'desc')->get();

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Razvan ajax30 Joined 2 Oct 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.