Skip to content

PHP code snippet – How validate array in laravel in request?

$validator = Validator::make($request->all(), [
    "names"    => "required|array|min:3",
    "names.*"  => "required|string|distinct|min:3",
See also  Python code snippet - How to make a time limit using renpy?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.