how to get all the records with same id in laravel

Solutions on MaxInterview for how to get all the records with same id in laravel by the best coders in the world

showing results for - "how to get all the records with same id in laravel"
Paulina
26 Mar 2016
1Product::orderBy('id','desc')->where('category_id', 1)->get();
2