валидация изображения Laravel
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
Optimus Grind
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
'item' => 'required|integer|between:1,10',
'email' => 'required|email|unique:users,email',
//@sujay
$data = $request->validate([
"name" => "required|array|min:3",
"name.*" => "required|string",
]);
$validator = Validator::make($request->all(), [
"names" => "required|array|min:3",
"names.*" => "required|string|distinct|min:3",
]);
'username' => ['required', 'min:3', 'max:255', Rule::unique('users', 'username')],