Commit 9f7ed576 authored by Taylor Otwell's avatar Taylor Otwell

allow eloquent models to use increment and decrement.

parent 9bf978ab
...@@ -514,7 +514,7 @@ abstract class Model { ...@@ -514,7 +514,7 @@ abstract class Model {
// All of the aggregate and persistance functions can be passed directly to the query // All of the aggregate and persistance functions can be passed directly to the query
// instance. For these functions, we can simply return the response of the query. // instance. For these functions, we can simply return the response of the query.
if (in_array($method, array('insert', 'update', 'abs', 'count', 'sum', 'min', 'max', 'avg'))) if (in_array($method, array('insert', 'update', 'increment', 'decrement', 'abs', 'count', 'sum', 'min', 'max', 'avg')))
{ {
return call_user_func_array(array($this->query, $method), $parameters); return call_user_func_array(array($this->query, $method), $parameters);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment