Thanks, you are right.
I would have use
CarRating::selectRaw('rating as total')->get();
instead of
CarRating::select('rating as total')->get();
Thanks, you are right.
I would have use
CarRating::selectRaw('rating as total')->get();
instead of
CarRating::select('rating as total')->get();