コード例 #1
0
ファイル: QueHelper.php プロジェクト: jocoonopa/lubri
 protected function fetchDependLimitTimeByQue()
 {
     if ($this->que->type->id === $this->que->type->depend_on_id) {
         return Carbon::now();
     }
     $dependQue = FVSyncQue::latest()->where('type_id', '=', FVSyncType::where('id', '=', $this->que->type->depend_on_id)->first()->id)->whereNotNull('last_modified_at')->where('status_code', '=', FVSyncQue::STATUS_COMPLETE)->first();
     return NULL === $dependQue ? Carbon::now() : $dependQue->last_modified_at;
 }
コード例 #2
0
ファイル: QueController.php プロジェクト: jocoonopa/lubri
 public function index()
 {
     return view('viga.que.index', ['ques' => FVSyncQue::latest()->paginate(env('QUE_COUNT_PERPAGE', 100)), 'limit' => env('QUE_COUNT_PERPAGE', 100)]);
 }