Updating $eloquent->dirty() method.
This commit is contained in:
@@ -416,7 +416,7 @@ abstract class Model {
|
|||||||
*/
|
*/
|
||||||
public function dirty()
|
public function dirty()
|
||||||
{
|
{
|
||||||
return ! $this->exists or $this->original !== $this->attributes;
|
return ! $this->exists or count($this->get_dirty()) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user