mirror of
https://github.com/anonaddy/anonaddy
synced 2026-04-26 01:25:06 +02:00
Initial commit
This commit is contained in:
24
app/Http/Resources/AliasResource.php
Normal file
24
app/Http/Resources/AliasResource.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class AliasResource extends JsonResource
|
||||
{
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'user_id' => $this->user_id,
|
||||
'email' => $this->email,
|
||||
'active' => $this->active,
|
||||
'description' => $this->description,
|
||||
'emails_forwarded' => $this->emails_forwarded,
|
||||
'emails_blocked' => $this->emails_blocked,
|
||||
'recipients' => $this->recipients,
|
||||
'created_at' => $this->created_at->toDateTimeString(),
|
||||
'updated_at' => $this->updated_at->toDateTimeString(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user