Publish CMS content on public routes with responsive media, accessibility checks, and deterministic visual baselines. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
467 B
PHP
24 lines
467 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Application\Queries\Marketing;
|
|
|
|
use App\Models\PortfolioCase;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
|
|
final class GetPublishedPortfolioCases
|
|
{
|
|
/**
|
|
* @return Collection<int, PortfolioCase>
|
|
*/
|
|
public function __invoke(): Collection
|
|
{
|
|
return PortfolioCase::query()
|
|
->published()
|
|
->with(['images'])
|
|
->orderBy('sort_order')
|
|
->get();
|
|
}
|
|
}
|