コード例 #1
0
 /**
  * return particular document
  * @param $orgId
  * @param $url
  * @param $filename
  * @return static
  */
 public function getDocument($orgId, $url, $filename)
 {
     $data = ['url' => $url, 'org_id' => $orgId];
     !$filename ?: ($data['filename'] = $filename);
     return $this->document->firstOrNew($data);
 }