8000 Minor fixes. · sablesoft/laravel-json-api@825cbb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 825cbb9

Browse files
committed
Minor fixes.
1 parent 703e50e commit 825cbb9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
use Neomerx\JsonApi\Responses\Responses;
2525
use Request;
2626

27-
;
28-
2927
/**
3028
* Class ServiceProvider
3129
* @package CloudCreativity\JsonApi
@@ -50,8 +48,8 @@ public function boot(Router $router, Kernel $kernel)
5048
]);
5149

5250
// Add Json Api middleware to the router.
53-
$router->middleware(Integration\LaravelEnvironment::JSON_API, Http\Middleware\BootJsonApi::class);
54-
$router->middleware(Integration\LaravelEnvironment::SUPPORTED_EXT, Http\Middleware\SupportedExt::class);
51+
$router->middleware('json-api', Http\Middleware\BootJsonApi::class);
52+
$router->middleware('json-api-ext', Http\Middleware\SupportedExt::class);
5553

5654
// If the whole application is set to be a Json Api, push the init middleware into the kernel.
5755
$global = (bool) $this->getConfig(Config::IS_GLOBAL);

0 commit comments

Comments
 (0)
0