laravel get all data with same code code example
Example: how to get all the records with same ID in laravel
Product::orderBy('id','desc')->where('category_id', 1)->get();
Product::orderBy('id','desc')->where('category_id', 1)->get();