feat: Refactor event form functionality by removing social media data from AdminAppBootstrapResource and AdminAppBootstrapService; add EventFormController, EventFormResource, and EventFormService; implement routes and tests for event form

This commit is contained in:
2026-08-03 14:02:08 -03:00
parent 12697c2268
commit 3b36abd46d
12 changed files with 162 additions and 36 deletions

View File

@@ -2,13 +2,11 @@
namespace App\Domains\Bootstrap\Services;
use App\Domains\Tenant\Models\SocialMedia;
use App\Domains\Tenant\Models\WebsiteType;
use Illuminate\Database\Eloquent\Collection;
class AdminAppBootstrapService
{
/** @return array{website_type: WebsiteType, social_media: Collection<int, SocialMedia>} */
/** @return array{website_type: WebsiteType} */
public function get(string $domain): array
{
return [
@@ -16,7 +14,6 @@ class AdminAppBootstrapService
->with(['siteLogo', 'footerLogo'])
->where('dominio', $domain)
->firstOrFail(),
'social_media' => SocialMedia::query()->orderBy('id')->get(),
];
}
}