validate Required_if great than or lessthan

Posted 1 month ago by hosamalzagh

i want prefix_custom require if prefix >2 i try 'prefix' => 'integer', 'prefix_custom' =>'required_if:prefix,gt,2', and 'prefix' => 'integer', 'prefix_custom' =>'required_if:prefix,>,2',

togethar not work

Please sign in or create an account to participate in this conversation.