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

Using "has" to query on pivot table (aka join table)

The problem is that you use wrong relation for this. Many to many is belongsToMany and hasMany works...

0 Likes
replied 11 years ago

Laravel Magic in Eloquent and View

In fact you are wrong about Eloquent with as it's not working dynamically like where

0 Likes
replied 11 years ago

Polymorphic Relationships and whereHas not working

whereHas can't do it as it doesn't know what tables it should check. In fact polymorphic relations h...

0 Likes
replied 11 years ago

One to many error.

The error doesn't come from the code you showed, it's probably in the view and the reason for that i...

0 Likes
replied 11 years ago

Pivot not updating

If it's foreign key then you can't update it this way. Instead use detach and attach methods. Otherw...

0 Likes
Solved

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.