Skip to content

PHP code snippet – How to get all the records with same ID in laravel?

Product::orderBy('id','desc')->where('category_id', 1)->get();
See also  How to reverse fetch assoc in PHP?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.