refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
28
app/Http/Resources/Settings/Currency/Currency.php
Normal file
28
app/Http/Resources/Settings/Currency/Currency.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources\Settings\Currency;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
/**
|
||||
* @extends JsonResource<\App\Models\Settings\Currency>
|
||||
*/
|
||||
class Currency extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'object' => 'currency',
|
||||
'iso' => $this->iso,
|
||||
'name' => $this->name,
|
||||
'symbol' => $this->symbol,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user