Pulled Dingo back to 0.6.* - Basic Auth not working with new version

This commit is contained in:
Elliot Hesp
2014-11-27 19:36:40 +00:00
parent 1383e45f9d
commit f44871a92e
5 changed files with 41 additions and 34 deletions
@@ -100,4 +100,15 @@
$model = $this->model->whereId($id)->first(['id']);
$model->update($array);
}
/**
* Validate a given model with Watson validation
* @param object $model
* @return Exception
*/
public function validate($model) {
if ($model->isInvalid()) {
throw new Exception('Invalid model validation');
}
}
}