Support the ongoing development of Laravel.io →
ckissi

ckissi

Joined 9 Jun 2014

Statistics

Threads 2
Replies 8
Solutions 0
Articles 0

Eloquent deleting model event doesn't fire

I have 2 models defined: Program model: class Program extends \Eloquent { protected $guarded =...

0 Likes
8 Replies
Solved

Eloquent eager loading, cannot access relation data

Hello, I have 2 models. One is "developer" and the second is "program". One deve...

0 Likes
12 Replies
replied 11 years ago

Eloquent eager loading, cannot access relation data

zenry said: $developers->each(); //Execute a callback over each item. try a foreach foreach($dev...

0 Likes
replied 11 years ago

Eloquent eager loading, cannot access relation data

I'm able to go over developers by : $developers->each(function($developer) { echo &qu...

0 Likes
replied 11 years ago

Eloquent eager loading, cannot access relation data

thevelement said: The programs() method will create an attribute that will be a Collection of the r...

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.