Level 3
@denason Try this.
public function rules()
{
return [
'username'=> 'required|min:4',
'password'=> 'required|min:5',
'profile' => 'required|mimes:jpeg,bmp,png'
];
}
Hope it helps!.
i have a validation function like :
public function rules() { return [ 'username'=> 'required | min:4', 'password'=> 'required|min:5', 'profile' => 'required|mimes:jpeg,bmp,png|required' ]; }
username and password validation work correctly ALL format of file and upload them.
required for profile work OK but mimes NOT.
Please or to participate in this conversation.