<?php

namespace App\Http\Controllers\Concerns;

use App\Services\Core\ColumnAwareLocationChainValidator;
use Illuminate\Http\Request;

trait UsesColumnAwareLocationValidation
{
    protected function validateVictimLocationChain(Request $request): void
    {
        app(ColumnAwareLocationChainValidator::class)->assertValid(
            (int) $request->input('districtid'),
            (int) $request->input('subcountyid'),
            (int) $request->input('parishid')
        );
    }
}
