mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
v5.0.0 update
This commit is contained in:
27
app/Http/Resources/FileDiskResource.php
Normal file
27
app/Http/Resources/FileDiskResource.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class FileDiskResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user