Commit 02cb96a0 authored by Taylor Otwell's avatar Taylor Otwell

fix bug in eloquent model.

parent ae5331b3
......@@ -544,7 +544,7 @@ abstract class Model {
*/
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