Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit 4041752

Browse files
v1.18.1
2 parents d186fa0 + ac9e597 commit 4041752

File tree

5 files changed

+385
-241
lines changed

5 files changed

+385
-241
lines changed

app/Http/Controllers/Core/V1/LocationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function index(IndexRequest $request)
5959
'postcode',
6060
'country',
6161
])
62-
->defaultSort([
62+
->defaultSorts([
6363
'address_line_1',
6464
'address_line_2',
6565
'address_line_3',

app/Http/Controllers/Core/V1/Service/RelatedController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __invoke(Request $request, Service $service)
5858

5959
$query->orderByRaw($sql, [$location->lat(), $location->lon(), $location->lat()]);
6060
})
61-
->orderBy('name');
61+
->orderBy('services.name');
6262

6363
$services = QueryBuilder::for($baseQuery)
6464
->allowedIncludes(['organisation'])

app/Http/Controllers/Core/V1/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function index(IndexRequest $request)
7878
'last_name',
7979
'highest_role',
8080
])
81-
->defaultSort([
81+
->defaultSorts([
8282
'first_name',
8383
'last_name',
8484
])

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php-http/guzzle6-adapter": "^1.1",
2525
"phpoffice/phpspreadsheet": "^1.4",
2626
"predis/predis": "^1.1",
27-
"spatie/laravel-query-builder": "^1.10",
27+
"spatie/laravel-query-builder": "v1.17.2",
2828
"symfony/yaml": "^4.1"
2929
},
3030
"require-dev": {

0 commit comments

Comments
 (0)