
* - directory refactor * - readme.md update * Update readme.md Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
25 lines
570 B
PHP
25 lines
570 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Toby\Infrastructure\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class UserFormDataResource extends JsonResource
|
|
{
|
|
public static $wrap = null;
|
|
|
|
public function toArray($request): array
|
|
{
|
|
return [
|
|
"id" => $this->id,
|
|
"firstName" => $this->first_name,
|
|
"lastName" => $this->last_name,
|
|
"email" => $this->email,
|
|
"employmentForm" => $this->employment_form,
|
|
"employmentDate" => $this->employment_date,
|
|
];
|
|
}
|
|
}
|