for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Thinktomorrow\Chief\Concerns;
trait Sortable
{
protected $sortableAttribute = 'order';
public function scopeSortedManually($query)
return $query->orderBy($this->sortableAttribute, 'ASC');
}