chore(purchases): remove legacy-era purchases sources

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 09:55:56 +02:00
parent d115710bb1
commit 76a4218e1e
15 changed files with 0 additions and 1395 deletions
@@ -1,30 +0,0 @@
<?php
namespace App\Domains\Purchases\Http\Resources;
use App\Domains\Accounts\Http\Resources\CompanyResource;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class ExpenseCategoryResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param Request $request
*/
public function toArray($request): array
{
return [
'id' => $this->id,
'name' => $this->name,
'description' => $this->description,
'company_id' => $this->company_id,
'amount' => $this->amount,
'formatted_created_at' => $this->formattedCreatedAt,
'company' => $this->when($this->company()->exists(), function () {
return new CompanyResource($this->company);
}),
];
}
}