Support the ongoing development of Laravel.io →

Serhioromano

Joined 1 Jan 2015

Statistics

Threads 2
Replies 4
Solutions 0
Articles 0

Enforce additional WHERE on all queries.

We have a product SaaS let's say eCommerce. All user created shops and products are stored in single...

0 Likes
4 Replies

Many to many inverse query how?

Let`s take classic documentation example User -> Role public function roles() { return $this->...

0 Likes
10 Replies
replied 9 years ago

Enforce additional WHERE on all queries.

By SELECT * I meant do you want a where clause to happen on every query. How about this DB::select(&...

0 Likes
replied 9 years ago

Many to many inverse query how?

shez1983 said: since your wording was/is confusing... if its many to many then create such relation...

0 Likes
replied 9 years ago

Many to many inverse query how?

shez1983 said: the doc mention has many through relationship for exactly what you are trying to do...

0 Likes
replied 9 years ago

Many to many inverse query how?

I know how to connect. The question is how to get list of items. With your example say you know that...

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.