public function readOrganization($id) {
$list = Organization::with(['authcodes' => function ($query) {$query->select('organization_id', 'auth_code');}])->find($id);
if (empty($list)) {
return '未查到结果!';
}
$list = $list->toArray();
$list['authcodes'] = join(PHP_EOL, array_column($list['authcodes'], 'auth_code'));
return view('organization/readOrganization', compact('list'));
}