for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Src\UseCases\Infra\Sql;
use App\Src\UseCases\Domain\Ports\ListRepository;
use Illuminate\Support\Facades\DB;
class ListRepositorySql implements ListRepository
{
public function getByType(string $type, bool $isMain): array
$list = DB::table('list')
->where('type', $type)
->where('main', $isMain)
->orderBy('priority')
->get();
return $list->toArray();
}