Custom validation rules
Files in this example
-
app/Rules/CurrentPasswordRule.php
-
app/Http/Requests/ChangePasswordRequest.php
-
app/Http/Controllers/ProfileController.php