Skip to content

Commit 1025920

Browse files
committed
Laravel 12
1 parent e50c617 commit 1025920

File tree

3 files changed

+364
-643
lines changed

3 files changed

+364
-643
lines changed

app/Http/Controllers/GraphQLController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use ApiSkeletons\Doctrine\ORM\GraphQL\Config;
88
use ApiSkeletons\Doctrine\ORM\GraphQL\Driver;
9-
use ApiSkeletons\Laravel\ApiProblem\Facades\ApiProblem;
109
use App\GraphQL\Mutation;
1110
use App\GraphQL\Query;
1211
use Doctrine\Laminas\Hydrator\DoctrineObject;
@@ -21,6 +20,7 @@
2120
use GraphQL\Validator\Rules\QueryComplexity;
2221
use Illuminate\Http\Request;
2322

23+
use function abort;
2424
use function array_map;
2525
use function config;
2626

@@ -34,7 +34,7 @@ public function __invoke(EntityManager $entityManager, Request $request): array
3434
$operationName = $request->json('operationName');
3535

3636
if (! $query) {
37-
return ApiProblem::response('Query is required', 422);
37+
abort(422, 'Missing query parameter');
3838
}
3939

4040
$context = [];

composer.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@
77
"require": {
88
"php": "^8.2",
99
"api-skeletons/doctrine-orm-graphql": "^12.3",
10-
"api-skeletons/laravel-doctrine-apikey": "^2.0",
11-
"api-skeletons/laravel-doctrine-data-fixtures": "^1.0",
1210
"laravel-doctrine/orm": "^3.0",
13-
"laravel/framework": "^11.9",
14-
"laravel/tinker": "^2.9",
11+
"laravel/framework": "^12.0",
12+
"laravel/tinker": "^2.10.1",
1513
"mll-lab/laravel-graphiql": "^3.2"
1614
},
1715
"require-dev": {
1816
"doctrine/coding-standard": "^12.0",
1917
"fakerphp/faker": "^1.23",
20-
"laravel/pail": "^1.1",
18+
"laravel/pail": "^1.2.2",
2119
"laravel/pint": "^1.13",
2220
"mockery/mockery": "^1.6",
23-
"nunomaduro/collision": "^8.1",
21+
"nunomaduro/collision": "^8.6",
2422
"php-parallel-lint/php-parallel-lint": "^1.4",
2523
"phpstan/phpstan": "^1.12",
26-
"phpunit/phpunit": "^11.0.1"
24+
"phpunit/phpunit": "^11.5.3"
2725
},
2826
"autoload": {
2927
"psr-4": {

0 commit comments

Comments
 (0)