Laravel validation - input must be one of items in array

前端 未结 2 821
清酒与你
清酒与你 2021-02-20 08:43

Is there a built in validator in Laravel 5 that checks if value is in array of my whitelisted values sort of speak.. Something like:

$rules = [
    \'field_name\         


        
2条回答
提交回复
热议问题