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

How to add data to many-to-many polymorphic relation?

Check this: http://stackoverflow.com/questions/23896031/how-to-save-entries-in-many-to-many-polymorp...

0 Likes
Solved
replied 11 years ago

Counting and filtering results via a Pivot table

I suggest some remodeling: // Lists model public function getSubscribersCountAttribute() { if ( !...

0 Likes
replied 11 years ago

Query Builder query using Eloquent syntax

You can use scope for that, that's probably all: // Airport model public function scopeSearchWithCit...

0 Likes
replied 11 years ago

belongsToMany relationsship on custom pivot model

Your GameTeam model should extend Model (Eloquent), not Pivot, if you want to work with it like an o...

0 Likes
replied 11 years ago

Eager Loading - "first()" vs. dynamic properties

mcraz said: You are a bit wrong ;) First off to answer OP question: $model->relation // dynam...

1 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.