feat(event): add per-user date change notices
This commit is contained in:
20
app/Domains/Event/Resources/EventDateNoticeResource.php
Normal file
20
app/Domains/Event/Resources/EventDateNoticeResource.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Event\Resources;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class EventDateNoticeResource extends JsonResource
|
||||
{
|
||||
/** @return array<string, mixed> */
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'type' => $this->resource['type'],
|
||||
'change_ids' => $this->resource['change_ids'],
|
||||
'title' => $this->resource['title'],
|
||||
'message' => $this->resource['message'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user