HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/csb.komma.pro/app/Pages/Resources/PageTranslation.php
<?php declare(strict_types=1);


namespace App\Pages\Resources;


use Illuminate\Http\Resources\Json\JsonResource;

class PageTranslation extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'slug' => $this->slug,
            'name' => $this->name,
            'subtitle' => $this->subtitle,
            'intro' => $this->intro,
            'description' => $this->description,
            'meta_title' => $this->meta_title,
            'meta_description' => $this->meta_description,
            'translatable' => $this->whenLoaded('translatable', $this->translatable),
            'language' => $this->whenLoaded('language', $this->language),
            'route' => $this->whenLoaded('route', $this->route),
            'redirectRoutes' => $this->redirectRoutes,
        ];
    }
}