Support the ongoing development of Laravel.io →
hieroshima

hieroshima

Joined 16 Dec 2014

Statistics

Threads 3
Replies 8
Solutions 0
Articles 0
posted 11 years ago

Wrapping eloquent relation object

Hi, How can I add new attribute to my new object before for example find but i dont want save that n...

0 Likes
0 Replies
posted 11 years ago

Creating/Inserting relations in Eloquent

Hi, How i can add relationship into object but don't save it now. Example: $user = new User(); $user...

0 Likes
9 Replies

Foreign keys and mass assignment

Hi everyone, I have a question about eloquent mass assignment. Is that my all foreign keys must defi...

0 Likes
10 Replies
Solved
replied 11 years ago

Foreign keys and mass assignment

You have right but if my primary key didn't in fillable var we can't modify it, right? Foreign keys...

0 Likes
replied 11 years ago

Foreign keys and mass assignment

Ok, so why better idea is: foreign keys are guarded and i must use foreach for assign input data int...

0 Likes
replied 11 years ago

Foreign keys and mass assignment

Thanks for your answer. I got one more question to you. If i have an object with much fields like 10...

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.