Commit 02cb96a0 by Taylor Otwell

fix bug in eloquent model.

parent ae5331b3
...@@ -544,7 +544,7 @@ abstract class Model { ...@@ -544,7 +544,7 @@ abstract class Model {
*/ */
public function get_key() public function get_key()
{ {
return array_get($this->original, static::$key); return array_get($this->attributes, static::$key);
} }
/** /**
......
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