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  Java code snippet - How to perform zoom in selenium ?

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.