toby/app/Infrastructure/Http/Resources/ResumeFormResource.php
Adrian Hopek 37ce3262ac wip
2022-05-09 15:03:09 +02:00

27 lines
635 B
PHP

<?php
declare(strict_types=1);
namespace Toby\Infrastructure\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ResumeFormResource extends JsonResource
{
public static $wrap = null;
public function toArray($request): array
{
return [
"id" => $this->id,
"user" => $this->user_id,
"name" => $this->name,
"description" => $this->description,
"education" => $this->education,
"languages" => $this->languages,
"technologies" => $this->technologies,
"projects" => $this->projects,
];
}
}