Updating $eloquent->dirty() method.
This commit is contained in:
parent
e5b3b196ab
commit
268e6e460d
|
@ -416,7 +416,7 @@ public function changed($attribute)
|
|||
*/
|
||||
public function dirty()
|
||||
{
|
||||
return ! $this->exists or $this->original !== $this->attributes;
|
||||
return ! $this->exists or count($this->get_dirty()) > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue