Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

You can access it like Auth::user()->blogs()->blogcomments() note u should use eagler loding!

Last updated 2 years ago.
0

eisenmaxx said:

You can access it like Auth::user()->blogs()->blogcomments() note u should use eagler loding!

I'm getting an error when i try to run the above code: ErrorException Undefined property: Illuminate\Database\Eloquent\Relations\HasMany::$blogcomments

Link to the screenshot of error

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.