public function getByFlagLevel(int $level, int $trackableType = Tracker::TRACKER_ANY, int $perPage = 15) : LengthAwarePaginator
    {
        return $this->getModel()
                    ->newQuery()
                    ->where('level', $level)
                    ->where($this->typeClosure($trackableType))
                    ->paginate($perPage);
    }
public function getByFlagLevel(int $level, int $trackableType = Tracker::TRACKER_ANY, int $perPage = 15) : LengthAwarePaginator
    {
        return $this->getModel()
                    ->newQuery()
                    ->where('level', $level)
                    ->where($this->typeClosure($trackableType))
                    ->paginate($perPage);
    }
public function getByFlagLevel ( int $ level , int $ trackableType = Tracker :: TRACKER_ANY , int $ perPage = 15 ) : LengthAwarePaginator { return $ this -> getModel ( ) -> newQuery ( ) -> where ( 'level' , $ level ) -> where ( $ this -> typeClosure ( $ trackableType ) ) -> paginate ( $ perPage ) ; }
Get tracks by flag level

@param int $level
@param int $trackableType
@param int $perPage
@return \Illuminate\Contracts\Pagination\LengthAwarePaginator
Get tracks by flag level