Skip to content

Commit

Permalink
Made getDefaultCartItemAttributes and getDefaultCartItemAttributes me…
Browse files Browse the repository at this point in the history
…thod protected on the Cart model

Fixes #9
  • Loading branch information
fulopattila122 committed Aug 27, 2019
1 parent f4a3ba4 commit 10e3c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function scopeOfUser($query, $user)
*
* @return array
*/
private function getDefaultCartItemAttributes(Buyable $product, $qty)
protected function getDefaultCartItemAttributes(Buyable $product, $qty)
{
return [
'product_type' => $product->morphTypeName(),
Expand All @@ -187,7 +187,7 @@ private function getDefaultCartItemAttributes(Buyable $product, $qty)
*
* @return array
*/
private function getExtraProductMergeAttributes(Buyable $product)
protected function getExtraProductMergeAttributes(Buyable $product)
{
$result = [];
$cfg = config(self::EXTRA_PRODUCT_MERGE_ATTRIBUTES_CONFIG_KEY, []);
Expand Down

0 comments on commit 10e3c80

Please sign in to comment.