alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

How to write this query in Laravel Eloquent ?

How to write this query in Laravel Eloquent ?

You could try somthing like this

 Visitor::select('country')
     ->withCount('id')
     ->groupBy('country')
     ->latest()
     ->get()

55 0
7

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