Created
February 13, 2020 10:46
-
-
Save ashour/f73a4479a8090c54165a641b41e147a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$validator = Validator::make($rules, $_POST); | |
if ($validator->isAllValid()) { | |
// all is well, proceed | |
} else { | |
// oops | |
$errors = $validator->errors(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment