- add CV management
This commit is contained in:
22
app/Http/Resources/CVResource.php
Normal file
22
app/Http/Resources/CVResource.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class CVResource extends JsonResource
|
||||
{
|
||||
public static $wrap = null;
|
||||
|
||||
public function toArray($request): array
|
||||
{
|
||||
return [
|
||||
'token' => $this->token,
|
||||
'email' => $this->email,
|
||||
'phoneNumber' => $this->phoneNumber,
|
||||
'formattedPhoneNumber' => $this->formattedPhoneNumber,
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user