I need to validate that a user only uploads a .jpg
I have the following request class. I made the image required but don't know how to check that it is only .jpg
public function rules()
{
return [
'name' => 'required|min:3',
'sku' => 'required|min:5|unique:products',
'description' => 'required|min:20',
'price' => 'required',
'image' => 'required'
];
}