Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "autoload.php";
- $rules = [
- 'email' => 'required|email',
- 'password' => 'required|min:8'
- ];
- $data = [
- 'email' => 'joost@tutsplus.com',
- 'password' => 'sasa8asa'
- ];
- $validator = new Vendor\App\Validator();
- if ($validator->validate($data, $rules)) {
- $joost = new Vendor\App\Admin($data);
- echo '<pre>';
- var_dump($joost);
- echo '</pre>';
- } else {
- die($validator->getErrors());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement