Commit 268e6e46 authored by Taylor Otwell's avatar Taylor Otwell

Updating $eloquent->dirty() method.

parent e5b3b196
......@@ -416,7 +416,7 @@ abstract class Model {
*/
public function dirty()
{
return ! $this->exists or $this->original !== $this->attributes;
return ! $this->exists or count($this->get_dirty()) > 0;
}
/**
......
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