feat(purchase): implement PurchaseController with CRUD operations and request validation

This commit is contained in:
2026-06-25 10:58:55 -03:00
parent 70f51ac863
commit 6c45f45815
6 changed files with 265 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php
use App\Domains\Purchase\Controllers\PurchaseController;
use Illuminate\Support\Facades\Route;
Route::prefix('tenants/{tenant:codigo}')->middleware('auth:sanctum')->group(function (): void {
Route::apiResource('compras', PurchaseController::class)->only(['index', 'store', 'show']);
});