File "FileDiskResource.php"
Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Http/Resources/FileDiskResource.php
File size: 630 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class FileDiskResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
*/
public function toArray($request): array
{
return [
'id' => $this->id,
'name' => $this->name,
'type' => $this->type,
'driver' => $this->driver,
'set_as_default' => $this->set_as_default,
'credentials' => $this->credentials,
'company_id' => $this->company_id,
];
}
}