public function getPointEventByType($isIncrease = true)
    {
        $query = PointEventType::select('id');

        $isIncrease ? $query->where('is_increase' ,$isIncrease) : $query->where('is_deduction');
        $eventType = $query->get();

        $this->eventQuery = PointEvent::with('activities')
            ->whereIn('point_event_type_id' ,$eventType->toArray());

        return $this->doQuery();
    }
public function getPointEventByType($isIncrease = true)
    {
        $query = PointEventType::select('id');

        $isIncrease ? $query->where('is_increase' ,$isIncrease) : $query->where('is_deduction');
        $eventType = $query->get();

        $this->eventQuery = PointEvent::with('activities')
            ->whereIn('point_event_type_id' ,$eventType->toArray());

        return $this->doQuery();
    }
public function getPointEventByType ( $ isIncrease = true ) { $ query = PointEventType :: select ( 'id' ) ; $ isIncrease ? $ query -> where ( 'is_increase' , $ isIncrease ) : $ query -> where ( 'is_deduction' ) ; $ eventType = $ query -> get ( ) ; $ this -> eventQuery = PointEvent :: with ( 'activities' ) -> whereIn ( 'point_event_type_id' , $ eventType -> toArray ( ) ) ; return $ this -> doQuery ( ) ; }
get point event by type

@param bool $isIncrease
@return \Illuminate\Database\Eloquent\Collection|static[]
get point event by type