refactor(services): Documents→Document + ExchangeRate→Integrations/ExchangeRate

Two follow-ups to the Services reorg that landed in 6d1816bd.

**Documents → Document** (singular). Documents/ was the only plural subdir in app/Services/ — every other bucket (Company, Mail, Module, Pdf, Storage, Update, ExchangeRate) was singular. Renaming to Document/ normalizes the whole tree.

**ExchangeRate → Integrations/ExchangeRate**. Introduces Integrations/ as an umbrella for external-service adapter subsystems. Exchange rate providers move in first; AI providers, payment gateways, and any other driver-pattern integrations land as sibling subdirs (Integrations/Ai/, Integrations/Payment/) without another reorg. Integrations/ was chosen over Providers/ to avoid conceptual collision with Laravel's app/Providers/ — 'check the providers' shouldn't be ambiguous.

17 files moved, 21 consumer files rewritten to point at the new namespaces via literal-string replacement (same approach as the previous reorg). 350 tests pass, Pint clean.
This commit is contained in:
Darko Gjorgjijoski
2026-04-11 11:30:00 +02:00
parent 6d1816bd1b
commit 947d00a9f1
37 changed files with 47 additions and 47 deletions

View File

@@ -6,7 +6,7 @@ use App\Models\Currency;
use App\Models\Customer;
use App\Models\Estimate;
use App\Models\User;
use App\Services\Documents\SerialNumberService;
use App\Services\Document\SerialNumberService;
use Illuminate\Database\Eloquent\Factories\Factory;
class EstimateFactory extends Factory

View File

@@ -7,7 +7,7 @@ use App\Models\Customer;
use App\Models\Invoice;
use App\Models\RecurringInvoice;
use App\Models\User;
use App\Services\Documents\SerialNumberService;
use App\Services\Document\SerialNumberService;
use Illuminate\Database\Eloquent\Factories\Factory;
class InvoiceFactory extends Factory

View File

@@ -7,7 +7,7 @@ use App\Models\Customer;
use App\Models\Payment;
use App\Models\PaymentMethod;
use App\Models\User;
use App\Services\Documents\SerialNumberService;
use App\Services\Document\SerialNumberService;
use Illuminate\Database\Eloquent\Factories\Factory;
class PaymentFactory extends Factory