I have an array that looks like this:
array:2 [
0 => "text/csv"
1 => "text/plain"
]
I want to use this array in my validation rule like this:
return [
'file' => 'mimetypes:' . $array,
];
But this is not working, do I need to encode it to a string or something?