Im sorry i am new for laravel, but this is strange,
i want to use custom error message in validation of error register, in my registercontroller :
$messages = [ 'vbadminEmail.required' => 'Email has already been taken this is customize error.', ]; $result = Validator::make($data, [ 'vbadminEmail' => 'required|email|max:255|unique:admin_user,user_email', 'vbadminPassword' => 'required|min:6|confirmed', ],$messages);
when i test and debug the result :
it still used the general format, not the "Email has already been taken this is customize error"
please help me how to fix it thank you