Support the ongoing development of Laravel.io →
chriz74x

chriz74x

Joined 8 Apr 2015

Statistics

Threads 22
Replies 27
Solutions 0
Articles 0
3 years ago

reduce database query to one and avoid load() null error

I have this function: public function show($id) { if (count($post = Post::find($id)))...

Likes Replies

save unaltered image to server with intervention (how to?)

Hi there, I finally managed to crop resize and compress an image file the user is submitting through...

Likes Replies

strip email addresses, domains or domain names from user input

I am looking at a way to strip those things from user input comments or posts in my project. I am us...

Likes Replies

how do we load user data (distant relation) in polymorphic relation and...

...how do we get all user's associated likeables? So I used the polymorphic relation method to set u...

Likes Replies

Policy not working, God knows why...

I am trying to move the controls I make in the Controller for a User to be able to leave a Comment o...

Likes Replies
5 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
5 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
5 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
5 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
5 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?

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

© 2022 Laravel.io - All rights reserved.