Co-authored-by: manoel freitas <manoel.josefneto@gmail.com> Co-committed-by: manoel freitas <manoel.josefneto@gmail.com>
26 lines
574 B
PHP
26 lines
574 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Application\Queries\Marketing;
|
|
|
|
use App\Application\Data\AboutContent;
|
|
use App\Models\PortfolioCase;
|
|
use App\Models\SiteSetting;
|
|
|
|
final class GetAboutContent
|
|
{
|
|
public function __invoke(): AboutContent
|
|
{
|
|
return new AboutContent(
|
|
settings: SiteSetting::instance(),
|
|
featuredCases: PortfolioCase::query()
|
|
->published()
|
|
->where('is_featured', true)
|
|
->orderBy('sort_order')
|
|
->limit(6)
|
|
->get(),
|
|
);
|
|
}
|
|
}
|