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

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

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

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

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