コード例 #1
0
 /**
  * Get Contracts having MTurk Tasks
  *
  * @return collection
  */
 public function getMTurkContracts()
 {
     return $this->contract->with('tasks')->where('mturk_status', '!=', '')->get();
 }
コード例 #2
0
 /**
  * contract with pages and annotations
  *
  * @param $contractId
  * @return Contract
  */
 public function getContractPagesWithAnnotations($contractId)
 {
     return $this->contract->with('pages.annotations')->findOrFail($contractId);
 }