public function registerSearchableMacros()
    {
        $self = $this;

        BaseCollection::macro('searchable', function () use ($self) {
            $self->queueMakeSearchable($this);
        });

        BaseCollection::macro('unsearchable', function () use ($self) {
            $self->queueRemoveFromSearch($this);
        });
    }
public function registerSearchableMacros()
    {
        $self = $this;

        BaseCollection::macro('searchable', function () use ($self) {
            $self->queueMakeSearchable($this);
        });

        BaseCollection::macro('unsearchable', function () use ($self) {
            $self->queueRemoveFromSearch($this);
        });
    }
public function registerSearchableMacros ( ) { $ self = $ this ; BaseCollection :: macro ( 'searchable' , function ( ) use ( $ self ) { $ self -> queueMakeSearchable ( $ this ) ; } ) ; BaseCollection :: macro ( 'unsearchable' , function ( ) use ( $ self ) { $ self -> queueRemoveFromSearch ( $ this ) ; } ) ; }
Register the searchable macros.

@return void
Register the searchable macros .