Adds asArray() method to the base Model that's used as proxy for
Idiorm's as_array()
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user