Complex Conditional Validation in Laraship

Laraship QuestionsCategory: TechnicalComplex Conditional Validation in Laraship
nao asked 6 years ago
Complex Conditional Validation is explained below: https://readouble.com/laravel/5.5/en/validation.html#conditionally-adding-rules In Larship, When I do this, how do I code sometimes method at rules() function? Please tell me to use below code: $v->sometimes('reason', 'required|max:500', function ($input) { return $input->games >= 100; });
1 Answers
laraship Staff answered 6 years ago

Hello,

Laraship is using Laravel standard validation engine, so what can be done in Laravel validation is identical to what we have