Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Controllers/RelationController.php
Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | public function show($id) | ||||
$response['statusInfo'] = $statusInfo; | $response['statusInfo'] = $statusInfo; | ||||
} | } | ||||
// Resource configuration, e.g. sender_policy, invitation_policy, acl | // Resource configuration, e.g. sender_policy, invitation_policy, acl | ||||
if (method_exists($resource, 'getConfig')) { | if (method_exists($resource, 'getConfig')) { | ||||
$response['config'] = $resource->getConfig(); | $response['config'] = $resource->getConfig(); | ||||
} | } | ||||
if (method_exists($resource, 'aliases')) { | |||||
$response['aliases'] = $resource->aliases()->pluck('alias')->all(); | |||||
} | |||||
return response()->json($response); | return response()->json($response); | ||||
} | } | ||||
/** | /** | ||||
* Fetch resource status (and reload setup process) | * Fetch resource status (and reload setup process) | ||||
* | * | ||||
* @param int $id Resource identifier | * @param int $id Resource identifier | ||||
* | * | ||||
Show All 32 Lines |