Adds asArray() method to the base Model that's used as proxy for

Idiorm's as_array()
This commit is contained in:
Vlad
2017-07-15 14:25:50 -04:00
parent 74cb8d9735
commit a4dad46fb7
2 changed files with 25 additions and 3 deletions

View File

@ -170,6 +170,10 @@ class Model extends \Sudzy\ValidModel {
return static::whereNotNull('deleted_at');
}
function asArray() {
return call_user_func_array('parent::as_array', func_get_args());
}
/**
* Rethrow PDOExceptions to prevent exposing sensitive data in stack traces
*/