Skip to content

Commit f6538a0

Browse files
PiranhaGeorgehootlex
authored andcommitted
Fix scope removal for laravel 5.3. (#22)
1 parent caa3741 commit f6538a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ModerationScope.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public function apply(Builder $builder, Model $model)
6464
*/
6565
public function remove(Builder $builder, Model $model)
6666
{
67+
$builder->withoutGlobalScope($this);
68+
6769
$column = $model->getQualifiedStatusColumn();
6870
$query = $builder->getQuery();
6971

0 commit comments

Comments
 (0)