Файл: app/Http/Resources/StatResource.php
Строк: 24
<?php
namespace AppHttpResources;
use IlluminateHttpResourcesJsonJsonResource;
class StatResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param IlluminateHttpRequest $request
* @return array
*/
public function toArray($request)
{
return parent::toArray($request);
}
/**
* Get any additional data that should be returned with the resource array.
*
* @param IlluminateHttpRequest $request
* @return array
*/
public function with($request)
{
return [
'status' => 200
];
}
}