whisper-money/app/Http
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
..
Controllers feat(settings): let users disable bank transactions email (#472) 2026-06-02 12:24:39 +02:00
Middleware feat: keep past due subscriptions active (#416) 2026-05-22 10:19:11 +01:00
Requests refactor(requests): share category cashflow direction resolution (#479) 2026-06-03 17:39:40 +02:00
Responses fix: route new PWA guests to signup (#313) 2026-04-21 10:53:05 +01:00