コード例 #1
0
ファイル: LogMapper.php プロジェクト: blozixdextr/adtw
 public static function type($type, $onlyFresh = true, $limit = 50)
 {
     if (is_string($type)) {
         $type = [$type];
     }
     $logs = Log::whereIn('type', $type);
     if ($onlyFresh) {
         $logs->where('review_date', null);
     }
     $logs = $logs->paginate($limit);
     return $logs;
 }