0

I made an custom rule that checks if the given value equals the password of the user. It works but when i give an wrong password it doesn't display my custom exception message. instead it has an fatal error:

Fatal error: Class 'app\Validation\Exceptions\MatchesPasswordException' not found in C:\xampp\htdocs\phpStorm\gkvrooster\vendor\respect\validation\library\Rules\AbstractRule.php on line 83

I have the files in the right position. Does anyone know why this wouldn't work.

I made a rule for checking if the email is avialble and that works like it should.

Bart Kalkman
  • 103
  • 1
  • 10

1 Answers1

0

Are you sure you meant to use the namespace "app\Validation\Exceptions"? It sounds to me you would probably want to use either "App\Validation\Exceptions" or "Validation\Exceptions".

Daan Meijer
  • 1,324
  • 7
  • 12