Skip to content

Commit

Permalink
Merge pull request #57 from lolibrary/search-tweaks
Browse files Browse the repository at this point in the history
Search tweaks
  • Loading branch information
momijizukamori committed Jul 3, 2024
2 parents c94b07b + fe9e106 commit 345892e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 600 deletions.
5 changes: 4 additions & 1 deletion app/Http/Controllers/Api/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ protected function years(Request $request, Builder $query)
$query->whereBetween('year', [$start_year, $end_year]);

} elseif ($matcher == "NOT") {
$query->whereNotBetween('year', [$start_year, $end_year]);
$query->where(function ($query) use ($start_year, $end_year) {
$query->whereNotBetween('year', [$start_year, $end_year])
->orWhereNull('year');
});

}
}
Expand Down
23 changes: 0 additions & 23 deletions resources/js/components/ExampleComponent.vue

This file was deleted.

11 changes: 0 additions & 11 deletions resources/js/components/Filter.vue

This file was deleted.

98 changes: 0 additions & 98 deletions resources/js/components/Pagination.vue

This file was deleted.

101 changes: 0 additions & 101 deletions resources/js/components/Result.vue

This file was deleted.

Loading

0 comments on commit 345892e

Please sign in to comment.