Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get percentage rating in laravel

$ratings = Rating::select('rating', DB::raw('count(id) as count'))
    ->groupBy('rating')
    ->get();
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #percentage #rating #laravel
ADD COMMENT
Topic
Name
2+1 =