Support the ongoing development of Laravel.io →
Hrvoje Jukic

Hrvoje Jukic

Joined 13 Oct 2014
Hrvoje is a full-stack Laravel developer since 2014. He has a master in computer science and hes own company https://yuca.ba

Statistics

Threads 1
Replies 213
Solutions 26
Articles 0

Redis connection contract

Laravel Version: 5.8 Why doesn't https://github.com/laravel/framework/blob/5.8/src/Illuminate/Redis/...

0 Likes
0 Replies
replied 11 years ago

compare table column with sum of hasMany

You have to use HAVING instead of WHERE in the inner query. select * from `models` where `id` in (se...

0 Likes
Solved
replied 11 years ago

compare table column with sum of hasMany

the error comes because of model.total. SQL doesn't know every unique models.id has a unique models....

0 Likes
replied 11 years ago

laravel get route with parameter

insert die() somewhere in the view, and see if it passes. If yes, move it down, if not, move it up....

0 Likes
replied 11 years ago

compare table column with sum of hasMany

Try something like this. Check out the query in your phpmyadmin $result = Model::with('relations')-&...

0 Likes
replied 11 years ago

How to count and sum in the same query

I hope I understand. Timestamps made by eloquent are of type datetime. If you group by created_at, e...

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.