Commit e452bbdf authored by Taylor Otwell's avatar Taylor Otwell

Fixed return type of Eloquent delete method.

parent b7997a95
...@@ -366,7 +366,7 @@ abstract class Eloquent { ...@@ -366,7 +366,7 @@ abstract class Eloquent {
// ----------------------------------------------------- // -----------------------------------------------------
if ($this->exists) if ($this->exists)
{ {
return Query::table(static::table(get_class($this)))->delete($this->id) == 1; return Query::table(static::table(get_class($this)))->delete($this->id);
} }
return $this->query->delete($id); return $this->query->delete($id);
......
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