Skip to content

Commit

Permalink
Fix scope removal for laravel 5.3. (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
PiranhaGeorge authored and hootlex committed May 29, 2017
1 parent caa3741 commit f6538a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ModerationScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public function apply(Builder $builder, Model $model)
*/
public function remove(Builder $builder, Model $model)
{
$builder->withoutGlobalScope($this);

$column = $model->getQualifiedStatusColumn();
$query = $builder->getQuery();

Expand Down

0 comments on commit f6538a0

Please sign in to comment.