Support the ongoing development of Laravel.io →
jarektkaczyk

jarektkaczyk

Joined 25 Mar 2014

Statistics

Threads 5
Replies 242
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

Accessing constrained relationship is re-querying the relationship

You're doing it wrong. Your code is inconsistent, that's the reason: $model = Model::with('someRelat...

0 Likes
replied 11 years ago

Undefined variable in Eager Load Constraints

Because of the scope. Learn this: http://php.net/manual/en/functions.anonymous.php

0 Likes
Solved
replied 11 years ago

Creating/Inserting relations in Eloquent

$phone->id_user is not default foreign key, so you should specify it in the user() relation as 2n...

0 Likes
replied 11 years ago

belongsTo relationship with pivot table

You need to create a model for the pivot table (not (only) pivot model). Read this http://stackoverf...

0 Likes
Solved
replied 11 years ago

SOLVED: Misunderstanding something in eloquent with naming!

@memii Be careful with naming relations using snake_case, since doing so means you will be unable to...

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.