for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\QueryBuilder\Includes;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Str;
class IncludedCount implements IncludeInterface
{
public function __invoke(Builder $query, string $count)
$query->withCount(Str::before($count, config('query-builder.count_suffix')));
}