Skip to content

Commit

Permalink
fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
veelasky committed Jan 11, 2019
1 parent e40cd64 commit 4f41704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eloquent/HashableId.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function scopeByHash($query, $hash)
*/
public function scopeByHashOrFail($query, $hash)
{
return $query->where($this->getKeyName(), $this->hashIds()->decode($hash))
return $query->where($this->getKeyName(), self::hashToId($hash))
->firstOrFail();
}

Expand Down

0 comments on commit 4f41704

Please sign in to comment.