More defined naming scheme for config

This commit is contained in:
Dane Everitt 2017-04-09 16:05:18 -04:00
parent de8bbcd098
commit 87c09a921b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ class NodeController extends Controller
->withResourceName('user') ->withResourceName('user')
->paginateWith(new IlluminatePaginatorAdapter($nodes)); ->paginateWith(new IlluminatePaginatorAdapter($nodes));
if (config('pterodactyl.api.allow_includes_on_list') && $request->input('include')) { if (config('pterodactyl.api.include_on_list') && $request->input('include')) {
$fractal->parseIncludes(explode(',', $request->input('include'))); $fractal->parseIncludes(explode(',', $request->input('include')));
} }

View file

@ -53,7 +53,7 @@ class ServerController extends Controller
->withResourceName('user') ->withResourceName('user')
->paginateWith(new IlluminatePaginatorAdapter($servers)); ->paginateWith(new IlluminatePaginatorAdapter($servers));
if (config('pterodactyl.api.allow_includes_on_list') && $request->input('include')) { if (config('pterodactyl.api.include_on_list') && $request->input('include')) {
$fractal->parseIncludes(explode(',', $request->input('include'))); $fractal->parseIncludes(explode(',', $request->input('include')));
} }

View file

@ -52,7 +52,7 @@ class UserController extends Controller
->withResourceName('user') ->withResourceName('user')
->paginateWith(new IlluminatePaginatorAdapter($users)); ->paginateWith(new IlluminatePaginatorAdapter($users));
if (config('pterodactyl.api.allow_includes_on_list') && $request->input('include')) { if (config('pterodactyl.api.include_on_list') && $request->input('include')) {
$fractal->parseIncludes(explode(',', $request->input('include'))); $fractal->parseIncludes(explode(',', $request->input('include')));
} }

View file

@ -43,7 +43,7 @@ return [
| Configuration options for the API. | Configuration options for the API.
*/ */
'api' => [ 'api' => [
'allow_includes_on_list' => env('API_ALLOW_INCLUDE_ON_LIST', false), 'include_on_list' => env('API_INCLUDE_ON_LIST', false),
], ],
/* /*