how to check exist in array in rule validation laravel
['someProperty' => ['required', Rule::in(['needed', 'stuff'])]];
how to check exist in array in rule validation laravel
['someProperty' => ['required', Rule::in(['needed', 'stuff'])]];
in_array validation laravel
in:foo,bar,...
The field under validation must be included in the given list of values. Since
this rule often requires you to implode an array, the Rule::in method may be
used to fluently construct the rule:
'field' => 'required|in:' . implode(',', ['value1', 'value2']),
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us