Support the ongoing development of Laravel.io →

VladShcherbin

Joined 27 Feb 2014

Statistics

Threads 4
Replies 9
Solutions 0
Articles 0

Has Many Through Pivot

Imagine: Category can have many Products, Products can have many Series - so basically, Category can...

0 Likes
1 Replies

ManyToMany where

Hello, I have 3 tables: products (->belongsToMany('Series')) series (->belongsToMany('Product...

0 Likes
8 Replies

Update existing row with unique rule (validation fails)

Hi, first question I cant find working answer. Laravel 4.1 ###rules public static $rules = [ 'name'...

0 Likes
7 Replies
Solved

Why two queries in Relationships, not join ?

When we do a relationship (e.g. One to One): $phone = User::find(1)->phone; there are 2 queries:...

0 Likes
9 Replies
Solved
replied 10 years ago

ManyToMany where

zenry said: Series::with('products')->where('id', '!=', 3)->get(); // eager loading Series::w...

0 Likes
replied 10 years ago

ManyToMany where

I really dont know how to write it with eloquent, probably would use DB::table('products')->join(...

0 Likes
replied 10 years ago

ManyToMany where

alainbelez said: how about this? Series::where('id', '!=', 3)->first()->products; nope, thi...

0 Likes
replied 10 years ago

ManyToMany where

Both no, in Series there is no 'series_id', but 'id' With this (my very first try) Series::where('id...

0 Likes
replied 10 years ago

Update existing row with unique rule (validation fails)

jarektkaczyk Yeah, share your opinion. Ended with custom Validator method. Its a shame there is no...

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.