protected function addWithPending(Builder $builder)
    {
        $builder->macro('withPending', function (Builder $builder) {
            $this->remove($builder, $builder->getModel());

            return $builder->whereIN($this->getStatusColumn($builder), [Status::APPROVED, Status::PENDING]);
        });
    }
protected function addWithPending(Builder $builder)
    {
        $builder->macro('withPending', function (Builder $builder) {
            $this->remove($builder, $builder->getModel());

            return $builder->whereIN($this->getStatusColumn($builder), [Status::APPROVED, Status::PENDING]);
        });
    }
protected function addWithPending ( Builder $ builder ) { $ builder -> macro ( 'withPending' , function ( Builder $ builder ) { $ this -> remove ( $ builder , $ builder -> getModel ( ) ) ; return $ builder -> whereIN ( $ this -> getStatusColumn ( $ builder ) , [ Status :: APPROVED , Status :: PENDING ] ) ; } ) ; }
Add the with-pending extension to the builder.

@param  \Illuminate\Database\Eloquent\Builder $builder

@return void
Add the with - pending extension to the builder .