Imagine: Category can have many Products, Products can have many Series - so basically, Category can...
Hello, I have 3 tables: products (->belongsToMany('Series')) series (->belongsToMany('Product...
Hi, first question I cant find working answer. Laravel 4.1 ###rules public static $rules = [ 'name'...
When we do a relationship (e.g. One to One): $phone = User::find(1)->phone; there are 2 queries:...
zenry said: Series::with('products')->where('id', '!=', 3)->get(); // eager loading Series::w...
I really dont know how to write it with eloquent, probably would use DB::table('products')->join(...
alainbelez said: how about this? Series::where('id', '!=', 3)->first()->products; nope, thi...
Both no, in Series there is no 'series_id', but 'id' With this (my very first try) Series::where('id...
jarektkaczyk Yeah, share your opinion. Ended with custom Validator method. Its a shame there is no...
The Laravel portal for problem solving, knowledge sharing and community building.
The community