<?php

namespace Modules\User\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class UserIdentityBaseResource extends JsonResource
{

    public function toArray($request): array
    {
        return [
            'id'            => $this->id,
            'name'          => $this->name,
            'cover'         => $this->cover_url,
            'order'         => $this->order,
            'is_experience' => (bool) $this->isExperience(),
        ];
    }

}
