add guest invitation read & valide with route

This commit is contained in:
2020-08-21 11:37:52 +02:00
parent 0a819fbadf
commit bddf4e5c09
12 changed files with 271 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class EventGuestWithoutEmail extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'email' => $this->email,
'read_at' => $this->read_at,
'validated_at' => $this->validated_at,
];
}
}