Support the ongoing development of Laravel.io →

hieroshima

Joined 16 Dec 2014

Statistics

Threads 3
Replies 8
Solutions 0
Articles 0
posted 9 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 9 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 9 years ago

Creating/Inserting relations in Eloquent

Hi, Ok now i know that associate() i can only use on belongsTo objects. But if i'm doing that: $phon...

0 Likes
replied 9 years ago

Creating/Inserting relations in Eloquent

Look at my code from first post. I'm creating new user then i'm doing save() on user object. From no...

0 Likes
replied 9 years ago

Foreign keys and mass assignment

Thank you :). You helped me alot.

0 Likes
replied 9 years ago

Creating/Inserting relations in Eloquent

@jarektkaczyk: Thank you, but if i do save() on my main object it isn't the same as ::find($id)? I m...

0 Likes
replied 9 years ago

Foreign keys and mass assignment

Ok so my last question :). When I update some object with PATCH method I got only fields that has c...

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.