<?php
namespace App\Http\Requests;use Illuminate\Foundation\Http\FormRequest;
class VerifyTransferRequest extends FormRequest {public function authorize():bool{return $this->user()?->can('payout.process')??false;}public function rules():array{return ['code'=>['required_without:qr_payload','nullable','string','max:64','regex:/^[ABCDEFGHJKLMNPQRSTUVWXYZ23456789\-\s]+$/i'],'qr_payload'=>['required_without:code','nullable','string','max:255']];}public function credential():string{return (string)($this->validated('code')??$this->validated('qr_payload'));}}
