More defined naming scheme for config
This commit is contained in:
parent
de8bbcd098
commit
87c09a921b
4 changed files with 4 additions and 4 deletions
|
@ -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')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue