摘要:
一对一 建立关联关系 通过hasOne方法定义一对一关联 public function profile() { return $this->hasOne(UserProfile::class); } Eloquent 底层约定 hasOne方法参数 public function hasOne($ 阅读全文
posted @ 2020-07-28 23:55
_大可乐
阅读(686)
评论(0)
推荐(0)
摘要:
php 压缩文件夹 例子来源于php官方文档。 <?php { /** * Add files and sub-directories in a folder to zip file. * @param string $folder * @param ZipArchive $zipFile * @p 阅读全文
posted @ 2020-07-28 15:43
_大可乐
阅读(213)
评论(0)
推荐(0)