Skip to content

Instantly share code, notes, and snippets.

@colbyr
Last active December 14, 2015 07:58
Show Gist options
  • Save colbyr/5054152 to your computer and use it in GitHub Desktop.
Save colbyr/5054152 to your computer and use it in GitHub Desktop.
password confirmations with aware
<?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