<?php

namespace App\Http\Resources\Admin;

use Illuminate\Http\Resources\Json\JsonResource;

class ContentTypeResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'name' => $this->name,
            'slug' => $this->slug,
            'is_single' => $this->is_single,
            'locales' => $this->locales,
            'default_locale' => $this->default_locale,
            'schema' => $this->schema,
            'created_at' => $this->created_at,
            'updated_at' => $this->updated_at,
        ];
    }
}
