protected function addReject(Builder $builder)
    {
        $builder->macro('reject', function (Builder $builder, $id = null) {
            $builder->withAnyStatus();
            return $this->updateModerationStatus($builder, $id, Status::REJECTED);

        });
    }
protected function addReject(Builder $builder)
    {
        $builder->macro('reject', function (Builder $builder, $id = null) {
            $builder->withAnyStatus();
            return $this->updateModerationStatus($builder, $id, Status::REJECTED);

        });
    }
protected function addReject ( Builder $ builder ) { $ builder -> macro ( 'reject' , function ( Builder $ builder , $ id = null ) { $ builder -> withAnyStatus ( ) ; return $ this -> updateModerationStatus ( $ builder , $ id , Status :: REJECTED ) ; } ) ; }
Add the Reject extension to the builder.

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

@return void
Add the Reject extension to the builder .