Skip to content

Commit 1033747

Browse files
authored
Merge pull request #10 from phailee/5.6
Feat: laravel 5.6 support
2 parents 483df03 + 4590307 commit 1033747

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Powerful RestAPI plugin for Laravel",
44
"type": "library",
55
"require": {
6-
"laravel/framework": "5.5.*"
6+
"laravel/framework": "5.6.*"
77
},
88
"license": "MIT",
99
"autoload": {

src/Handlers/ApiExceptionHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class ApiExceptionHandler extends Handler
1818

1919
public function render($request, \Exception $e)
2020
{
21-
$debug = env("APP_DEBUG");
22-
21+
$debug = config('app.debug');
2322
if (!$debug) {
2423
if ($e instanceof HttpResponseException || $e instanceof \Illuminate\Validation\ValidationException) {
2524
if ($e->getResponse()->getStatusCode() == 403) {

src/Routing/ApiRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function version($versions, Closure $callback)
5555
* @param \Closure|array|string|null $action
5656
* @return \Illuminate\Routing\Route
5757
*/
58-
protected function addRoute($methods, $uri, $action)
58+
public function addRoute($methods, $uri, $action)
5959
{
6060
// We do not keep routes in ApiRouter. Whenever a route is added,
6161
// we add it to Laravel's primary route collection

0 commit comments

Comments
 (0)