How to validate a laravel request object, I have this conditions
request()->validate([
'avatar' => 'required|image',
'display_name' => 'required|min:3|max:100',
'role_id' => 'required|integer',
'username' => 'required|unique:users|min:4|max:15',
'email' => 'required|email|unique:users',
'phone_number' => 'required|min:3',
'password' => 'required|min:6',
'country_id' => 'required|integer'
]);
But in my request it was stored in an object form, what should I do to make the validations work ?
