Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

havingRaw in laravel

Product::groupBy('category_id')->havingRaw('COUNT(*) > 1')->get();
Source by laraveldaily.com #
 
PREVIOUS NEXT
Tagged: #havingRaw #laravel
ADD COMMENT
Topic
Name
1+4 =