Support the ongoing development of Laravel.io →
jarektkaczyk

jarektkaczyk

Joined 25 Mar 2014

Statistics

Threads 5
Replies 241
Solutions 55
Articles 0

super Easy Global Scope definition

If you ever created complex global scope constraint, you must have faced a challenge with defining r...

0 Likes
0 Replies

How to search eloquent models with relations

Pretty much every app needs decent search engine. Nowadays specialized engines like ElasticSearch ar...

0 Likes
3 Replies

Eloquence - a must have package for eloquent

Do you use Eloquent in your apps? It's simply fun to work with, right? I think the same, but after s...

0 Likes
3 Replies

Easy db revisions with Sofa/Revisionable

I want to introduce nice and useful package for DB revisions. It works out of the box with Eloquent...

0 Likes
3 Replies
0 Likes
1 Replies
replied 11 years ago

Deep relations

Shift::whereRaw('id NOT IN (SELECT shift_id from absenceline')->get(); // sql: select * from shif...

0 Likes
replied 11 years ago

Searching many-to-many relationships

edit: Well I must be tired as it's midnight where I live... Use having() as it is what you want (BUT...

0 Likes
Solved
replied 11 years ago

One to many relationship returning NULL

The only thing I can think of is that you mistyped boards somewhere. There is no other way that Eloq...

0 Likes
replied 11 years ago

One to many relationship returning NULL

run DB::getQueryLog(); after fetching what you wanted, this will return all the queries and we can e...

0 Likes
replied 11 years ago

Custom Pivot Model - Doing belongsToMany uses parent model id, NOT pivot model id

And what's your product_option_country table? You want to query pivot table product_option_country f...

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.