示例#1
0
 public function find_in_db()
 {
     $toMatch = ['docset_filename' => $this->docset_filename, 'page_path' => $this->page_path];
     if ($this->docset_filename == "Mono" && !empty($this->httrack_source)) {
         $toMatch = ['docset_filename' => $this->docset_filename, 'httrack_source' => $this->httrack_source];
     }
     return Identifier::where($toMatch)->first();
 }