Validate array input

Posted 3 years ago by JackD

Hi I have this 1 input field for tags and each tag are separated by a ,

how can i validate each tag inside the singple input field?

here is what i have currently in my validation request

'pet' => 'required|exists:pets,id',
'tags' => 'required'

my tags input is like this

dog, pitbull, brown, white

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.