File "OrganizationResource.php"
Full Path: /var/www/html/back/app/Http/Resources/Permissions/OrganizationResource.php
File size: 451 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class OrganizationResource extends JsonResource
{
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'full_name' => $this->full_name,
'short_name' => $this->short_name,
'inn' => $this->inn,
'kpp' => $this->kpp,
];
}
}