wip
This commit is contained in:
		
							
								
								
									
										26
									
								
								app/Infrastructure/Http/Resources/ResumeFormResource.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								app/Infrastructure/Http/Resources/ResumeFormResource.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| <?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, | ||||
|         ]; | ||||
|     } | ||||
| } | ||||
							
								
								
									
										24
									
								
								app/Infrastructure/Http/Resources/ResumeResource.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								app/Infrastructure/Http/Resources/ResumeResource.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace Toby\Infrastructure\Http\Resources; | ||||
|  | ||||
| use Illuminate\Http\Resources\Json\JsonResource; | ||||
|  | ||||
| class ResumeResource extends JsonResource | ||||
| { | ||||
|     public static $wrap = null; | ||||
|  | ||||
|     public function toArray($request): array | ||||
|     { | ||||
|         return [ | ||||
|             "id" => $this->id, | ||||
|             "user" => new SimpleUserResource($this->user), | ||||
|             "name" => $this->name, | ||||
|             "description" => $this->description, | ||||
|             "createdAt" => $this->created_at->toDisplayString(), | ||||
|             "updatedAt" => $this->updated_at->toDisplayString(), | ||||
|         ]; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user