<?php
namespace App\Http\Requests\Admin;use Illuminate\Foundation\Http\FormRequest;
class CorridorRequest extends FormRequest {public function authorize():bool{return $this->user()?->can('corridor.update')??false;}public function rules():array{return ['min_amount_minor'=>['required','integer','min:1'],'max_amount_minor'=>['required','integer','gt:min_amount_minor'],'daily_cap_minor'=>['required','integer','gte:max_amount_minor'],'code_validity_hours'=>['required','integer','between:1,720'],'is_active'=>['required','boolean']];}}
