Files
ntspi-app/app/Ship/Resources/Breadcrumb/ClientBreadcrumbSection.php
T
2026-03-20 21:47:02 +05:00

23 lines
468 B
PHP
Executable File

<?php
namespace App\Ship\Resources\Breadcrumb;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class ClientBreadcrumbSection extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'title' => $this->title ?? null,
'slug' => $this->slug ?? null,
];
}
}