Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
TitasGailius committed Sep 2, 2018
1 parent 776e41d commit add69b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SearchesRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public static function searchableRelations(): array
protected static function applySearch($query, $search)
{
return $query->where(function ($query) use ($search) {
return static::applyRelationSearch(parent::applySearch($query, $search), $search);
parent::applySearch($query, $search);
static::applyRelationSearch($query, $search);
});
}

Expand Down

0 comments on commit add69b7

Please sign in to comment.