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