for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\QueryBuilder\Sorts;
use Illuminate\Database\Eloquent\Builder;
class SortsField implements Sort
{
public function __invoke(Builder $query, bool $descending, string $property)
$query->orderBy($property, $descending ? 'desc' : 'asc');
orderBy()
Illuminate\Database\Eloquent\Builder
enforceOrderBy()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
}
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.