Skip to content

Commit

Permalink
Fixed: Undefined variable $user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Gonçalves dos Reis committed Nov 5, 2015
1 parent cb7b0ae commit ca52915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traits/ShopTransactionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function order()
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function scopeWhereUser($query, $userId)
public function scopeWhereUser($query, $user_id)
{
return $query->join(
Config::get('shop.order_table'),
Expand All @@ -42,4 +42,4 @@ public function scopeWhereUser($query, $userId)
)
->where(Config::get('shop.order_table') . '.user_id', $user_id);
}
}
}

0 comments on commit ca52915

Please sign in to comment.