Skip to content

Commit

Permalink
update scopeSetInvalidJoin
Browse files Browse the repository at this point in the history
  • Loading branch information
fico7489 committed Dec 17, 2017
1 parent d1ee698 commit 86fb058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/EloquentJoinTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ trait EloquentJoinTrait


//set invalid clauses on join relations
public function scopeSetInvalidJoin(Builder $builder, $method, $parameters)
public function scopeSetInvalidJoin(Builder $builder, $method, $parameters = [])
{
$this->relationNotAllowedClauses[$method] = $parameters;
$this->relationNotAllowedClauses[$method] = $method;
}

//set where clause for join relations
Expand Down

0 comments on commit 86fb058

Please sign in to comment.