protected function addApprove(Builder $builder)
    {
        $builder->macro('approve', function (Builder $builder, $id = null) {
            $builder->withAnyStatus();
            return $this->updateModerationStatus($builder, $id, Status::APPROVED);
        });
    }
protected function addApprove(Builder $builder)
    {
        $builder->macro('approve', function (Builder $builder, $id = null) {
            $builder->withAnyStatus();
            return $this->updateModerationStatus($builder, $id, Status::APPROVED);
        });
    }
protected function addApprove ( Builder $ builder ) { $ builder -> macro ( 'approve' , function ( Builder $ builder , $ id = null ) { $ builder -> withAnyStatus ( ) ; return $ this -> updateModerationStatus ( $ builder , $ id , Status :: APPROVED ) ; } ) ; }
Add the Approve extension to the builder.

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

@return void
Add the Approve extension to the builder .