adrema/app/Fileshare/Resources/FileshareConnectionResource...

23 lines
468 B
PHP
Raw Normal View History

2024-06-27 00:00:29 +02:00
<?php
namespace App\Fileshare\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class FileshareConnectionResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array<string, mixed>
*/
public function toArray($request)
{
return [
'name' => $this->name,
'is_active' => $this->type->check(),
];
}
}