public function execute($toArray = true)
    {
        $conditions = array_merge(
            $this->conditions(),
            $this->scopeConditions()
        );

        return $this->model->addConditions($conditions)->buildData($toArray);
    }
public function execute($toArray = true)
    {
        $conditions = array_merge(
            $this->conditions(),
            $this->scopeConditions()
        );

        return $this->model->addConditions($conditions)->buildData($toArray);
    }
public function execute ( $ toArray = true ) { $ conditions = array_merge ( $ this -> conditions ( ) , $ this -> scopeConditions ( ) ) ; return $ this -> model -> addConditions ( $ conditions ) -> buildData ( $ toArray ) ; }
Execute the filter with conditions.

@param bool $toArray

@return array|Collection|mixed
Execute the filter with conditions .