Skip to content

Commit 02cb96a

Browse files
committed
fix bug in eloquent model.
1 parent ae5331b commit 02cb96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/database/eloquent/model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public function get_dirty()
544544
*/
545545
public function get_key()
546546
{
547-
return array_get($this->original, static::$key);
547+
return array_get($this->attributes, static::$key);
548548
}
549549

550550
/**

0 commit comments

Comments
 (0)