Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

How I can get top products from my orders in laravel ?

How I can get top products from my orders in laravel ?
 Try This $business->orders()->with(['products'=>function($qu)
    {
        $qu->orderBy('orders_count', 'desc');
        
    }])->get(); 

 


6 0

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online