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 take an input in Python?

Leave a Reply

Your email address will not be published.

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