get('folders')->documentation; $filename = implode(DIRECTORY_SEPARATOR, [ $folder, 'base.json' ]); $documentation = json_decode(file_get_contents($filename)); return $this->withJson($response, $documentation); } }