ldc-mesbr-app/app/Http/Resources/CustomersResource.php

23 lines
464 B
PHP
Raw Permalink Normal View History

2021-04-20 19:51:30 +02:00
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class CustomersResource extends JsonResource
{
/**
* Transform the resource into an array.
*
2025-04-03 09:30:16 +02:00
* @param \Illuminate\Http\Request $request
2021-04-20 19:51:30 +02:00
* @return StatusResource
*/
public function toArray($request)
{
return new StatusResource([
'status' => 'OK',
'customer' => parent::toArray($request)
]);
}
}