Last active
December 14, 2015 07:58
-
-
Save colbyr/5054152 to your computer and use it in GitHub Desktop.
password confirmations with aware
This file contains 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 | |
$model = new User(); | |
$model->password = Input::get('password'); | |
$model->save([], [], function ($model) { | |
return $model->password === Input::get('confirm_password'); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment