|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Http\Resources; |
|
4
|
|
|
|
|
5
|
|
|
use Illuminate\Http\Resources\Json\JsonResource; |
|
6
|
|
|
|
|
7
|
|
|
class JobApplicationBasic extends JsonResource |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* Transform the resource into an array. Returns |
|
11
|
|
|
* a subset of the Application properties used on the Basic |
|
12
|
|
|
* Info Application step. |
|
13
|
|
|
* |
|
14
|
|
|
* @param \Illuminate\Http\Request $request |
|
15
|
|
|
* @return array |
|
16
|
|
|
*/ |
|
17
|
|
|
public function toArray($request) |
|
18
|
|
|
{ |
|
19
|
|
|
return [ |
|
20
|
|
|
'id' => $this->id, |
|
21
|
|
|
'job_poster_id' => $this->job_poster_id, |
|
22
|
|
|
'application_status_id' => $this->application_status_id, |
|
23
|
|
|
'citizenship_declaration_id' => $this->citizenship_declaration_id, |
|
24
|
|
|
'veteran_status_id' => $this->veteran_status_id, |
|
25
|
|
|
'preferred_language_id' => $this->preferred_language_id, |
|
26
|
|
|
'applicant_id' => $this->applicant_id, |
|
27
|
|
|
'applicant_snapshot_id' => $this->applicant_snapshot_id, |
|
28
|
|
|
'language_requirement_confirmed' => $this->language_requirement_confirmed, |
|
29
|
|
|
'language_test_confirmed' => $this->language_test_confirmed, |
|
30
|
|
|
'education_requirement_confirmed' => $this->education_requirement_confirmed, |
|
31
|
|
|
'user_name' => $this->user_name, |
|
32
|
|
|
'user_email' => $this->user_email, |
|
33
|
|
|
'created_at' => $this->created_at, |
|
34
|
|
|
'updated_at' => $this->updated_at, |
|
35
|
|
|
]; |
|
36
|
|
|
} |
|
37
|
|
|
} |
|
38
|
|
|
|