mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update Cart.php
Add instance to storedCartWithIdentifierExists
This commit is contained in:
@@ -831,7 +831,7 @@ class Cart
|
|||||||
*/
|
*/
|
||||||
private function storedCartWithIdentifierExists($identifier)
|
private function storedCartWithIdentifierExists($identifier)
|
||||||
{
|
{
|
||||||
return $this->getConnection()->table($this->getTableName())->where('identifier', $identifier)->exists();
|
return $this->getConnection()->table($this->getTableName())->where('identifier', $identifier)->where('instance', $this->currentInstance())->exists();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user