Support the ongoing development of Laravel.io →

pedropeixoto

Joined 17 Feb 2014

Statistics

Threads 3
Replies 4
Solutions 0
Articles 0

How to sync() more than the primary keys?

I have a many to many relationship setup like this: Product Model: public function skus() { return...

ostap liked this thread

1 Likes
1 Replies

Eloquent query database and return output with relationship.

Hi guys. I need to return a list of products that belong to X category, so I created an input parame...

0 Likes
4 Replies
posted 10 years ago

How to add a dyanmic appends to a model

I've got restful API set up in the /components/index/ route. Components have a belongsToMany relatio...

0 Likes
5 Replies
replied 10 years ago

Eloquent query database and return output with relationship.

Thanks man, I already changed my angular code to match your first solution though, so it won't be ne...

0 Likes
replied 10 years ago

Eloquent query database and return output with relationship.

This kind of works. I "kind of" because it returns the a Category array that contains all...

0 Likes
replied 10 years ago

How to add a dyanmic appends to a model

Hi Zenry. I don't quite get what you mean about the relationship. Are you suggesting I change it? Co...

0 Likes
replied 10 years ago

How to add a dyanmic appends to a model

"Trying to get property of non-object" I'm afraid I'm on the Code model. And I need the as...

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.