webman admin 的crud中,加上with,方便关联。

/** * 指定查询where条件,并没有真正的查询数据库操作 * @param array $where * @param string|null $field * @param string $order * @param string $with * @return EloquentBuilder|QueryBuilder|Model */ protected function doSelect(...

roczyl 发表与 16天前 172 浏览 0 评论
webman里面直接输出phpspeadsheet导出的文件到php://output

$writer = new Xlsx($spreadsheet); $response = response(); ob_start(); $writer->save('php://output'); $c = ob_get_contents(); ob_end_clean(); $response->withHeaders([ 'Content-Type' => 'application/...

roczyl 发表与 2022-08-18 2083 浏览 1 评论

roczyl

-80
积分
0
获赞数
0
粉丝数
2022-08-03 加入
🔝