Support the ongoing development of Laravel.io →
chriz74x

chriz74x

Joined 8 Apr 2015

Statistics

Threads 22
Replies 27
Solutions 0
Articles 0

Can't access final model (posts) through hasManyThrough method, error "Call to undefined method Illuminate\Database\Query\Builder::posts()"

I don't know what is wrong here. I have this kind of setup: item_model id - integer name - s...

0 Likes
20 Replies
posted 9 years ago

laravel 5.1 auth views completely messed up with Bootstrap 4.0.0 alpha2

I just upgraded my project to bootstrap 4.0.0 alpha2 , the views are messed up of course. I could mo...

0 Likes
2 Replies

View [post.create] not found. Error in laravel 5.1

I don't know what's the deal here. My view is named post.create.blade.php and is in the views folder...

0 Likes
0 Replies

retrieve data from two foreign tables referenced in items table attached to user by pivot table

Maybe with this image I can make myself clear. I have the user table and the owned_items table The o...

0 Likes
5 Replies

restore project from backup after HDD format

Hello, I recently formatted my hard drive and reinstalled the os, I set up MAMP, vhosts etc. Now, ar...

0 Likes
2 Replies
replied 9 years ago

Can't access final model (posts) through hasManyThrough method, error "Call to undefined method Illuminate\Database\Query\Builder::posts()"

jasonrust said: chriz74x said: jasonrust said: chriz74x said: jasonrust said: Hi, chriz74x ofco...

0 Likes
replied 9 years ago

Can't access final model (posts) through hasManyThrough method, error "Call to undefined method Illuminate\Database\Query\Builder::posts()"

jasonrust said: chriz74x said: jasonrust said: Hi, chriz74x ofcourse Call to undefined method Ill...

0 Likes
replied 9 years ago

Can't access final model (posts) through hasManyThrough method, error "Call to undefined method Illuminate\Database\Query\Builder::posts()"

It really retrieved everything but the posts. HasManyThrough {#232 ▼ #farParent: Item_model {#231...

0 Likes
replied 9 years ago

Can't access final model (posts) through hasManyThrough method, error "Call to undefined method Illuminate\Database\Query\Builder::posts()"

LaurentMeganck said: I believe your relations are wrong for what you are trying to achieve. It shou...

0 Likes
replied 9 years ago

Can't access final model (posts) through hasManyThrough method, error "Call to undefined method Illuminate\Database\Query\Builder::posts()"

jasonrust said: Hi, chriz74x ofcourse Call to undefined method Illuminate\Database\Query\Builder::p...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.