feat: Implement event management functionality with API endpoints and validation
This commit is contained in:
17
app/Domains/Forms/Services/EventFormService.php
Normal file
17
app/Domains/Forms/Services/EventFormService.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Forms\Services;
|
||||
|
||||
use App\Domains\Tenant\Models\SocialMedia;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
||||
class EventFormService
|
||||
{
|
||||
/** @return array{social_media: Collection<int, SocialMedia>} */
|
||||
public function get(): array
|
||||
{
|
||||
return [
|
||||
'social_media' => SocialMedia::query()->orderBy('id')->get(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user