laravel-likeable icon indicating copy to clipboard operation
laravel-likeable copied to clipboard

use the class in controller

Open MorezDev opened this issue 3 years ago • 1 comments

I want to display users with most likes. So is there any way to use your package in controller? Because it need a class to use. What is the proper class?

MorezDev avatar Apr 23 '22 08:04 MorezDev

Have to do a join to the likeable_likes table. I'm not sure of the exact code. https://laravel.com/docs/9.x/queries#joins

rtconner avatar Apr 25 '22 22:04 rtconner