Support the ongoing development of Laravel.io →

maximeguerreiro

Joined 6 Oct 2014

Statistics

Threads 0
Replies 4
Solutions 0
Articles 0

maximeguerreiro has not posted any threads yet

replied 10 years ago

Associating models without saving them directly

I have no clue. I would rather think that ->addresses()->push(..) would link it, without setti...

0 Likes
replied 10 years ago

Looping over relationship inside foreach

One shop has "one" opening hours, so it is hasOne But you don't have to loop over the hour...

0 Likes
replied 10 years ago

Looping over relationship inside foreach

Hi, If it hasOne('Hour'), why should it be an array ?

0 Likes
replied 10 years ago

Associating models without saving them directly

Hi, I think you may be loonking for the associate method. ( ~> http://laravel.com/docs/4.2/eloque...

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.

© 2024 Laravel.io - All rights reserved.