whisper-money/app/Http/Requests/Concerns
Víctor Falcón fe692e37c3
refactor(requests): share category cashflow direction resolution (#479)
## What

`StoreCategoryRequest` and `UpdateCategoryRequest` had identical 24-line
`prepareForValidation()` deriving `cashflow_direction` from category
type.

Moved to `app/Http/Requests/Concerns/ResolvesCategoryCashflowDirection`
trait.

## Stats

- **-48 / +43 lines** (net small, removes a whole duplicated logic block
that must stay in sync)

## Checks

- `php artisan test --filter=Categor` — 104 passed (565 assertions)
- `vendor/bin/pint --dirty` — pass

Part of duplication-removal series (#475–#478).
2026-06-03 17:39:40 +02:00
..
ResolvesCategoryCashflowDirection.php refactor(requests): share category cashflow direction resolution (#479) 2026-06-03 17:39:40 +02:00
ValidatesUserOwnedResources.php refactor(requests): extract user-owned exists rules to trait (#477) 2026-06-03 17:33:54 +02:00