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,40 +0,0 @@
<?php
namespace App\Domains\Purchases\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ExpenseCategoryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'name' => [
'required',
],
'description' => [
'nullable',
],
];
}
public function getExpenseCategoryPayload()
{
return collect($this->validated())
->merge([
'company_id' => $this->header('company'),
])
->toArray();
}
}