mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-09 09:53:44 +02:00
Add all of the potential transformers that might be needed for now.
This commit is contained in:
@@ -47,9 +47,7 @@ class ServerController extends Controller
|
||||
$fractal = Fractal::create()->item($server);
|
||||
|
||||
if ($request->input('include')) {
|
||||
$fractal->parseIncludes(collect(explode(',', $request->input('include')))->intersect([
|
||||
'allocations', 'subusers', 'stats',
|
||||
])->toArray());
|
||||
$fractal->parseIncludes(explode(',', $request->input('include')));
|
||||
}
|
||||
|
||||
return $fractal->transformWith(new ServerTransformer)
|
||||
|
||||
Reference in New Issue
Block a user