Publish CMS content on public routes with responsive media, accessibility checks, and deterministic visual baselines. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
383 B
PHP
20 lines
383 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Application\Queries\Marketing;
|
|
|
|
use App\Models\PortfolioCase;
|
|
|
|
final class FindPublishedPortfolioCaseBySlug
|
|
{
|
|
public function __invoke(string $slug): ?PortfolioCase
|
|
{
|
|
return PortfolioCase::query()
|
|
->published()
|
|
->with(['images'])
|
|
->where('slug', $slug)
|
|
->first();
|
|
}
|
|
}
|