26 lines
643 B
PHP
26 lines
643 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\PublicProfile;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
use Carbon\Carbon;
|
|
|
|
class AstronomicInformation extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'sun_sign' => $this->sun_sign,
|
|
'moon_sign' => $this->moon_sign,
|
|
'time_of_birth' => $this->time_of_birth,
|
|
'city_of_birth' => $this->city_of_birth,
|
|
];
|
|
}
|
|
}
|