laravel eloquent select columna and count code example Example: count column eloquent laravel $total = Post::sum('views');