'mobile' => ['required', function ($attribute, $value, $fail) use ($parameters) { if (($value + strlen($parameters['code'])) < 15) { $fail('Mobile number is too long'); } }