Skip to content

Commit

Permalink
laravel5
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Jan 18, 2021
1 parent df1733f commit 45fb4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TrashedScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function apply(Builder $builder, Model $model)
->union(
$trashBuilder
->withoutGlobalScope('withTrashed')
->from($trashModel->getTable(), $originalTable)
->from("{$trashModel->getTable()} as {$originalTable}")
)
->when($offset !== null, function (Builder $builder) use ($offset) {
$builder->offset($offset);
Expand Down

0 comments on commit 45fb4e3

Please sign in to comment.