public function queueMakeSearchable($models)
    {
        if ($models->isEmpty()) {
            return;
        }

        if (! config('scout.queue')) {
            return $models->first()->searchableUsing()->update($models);
        }

        dispatch((new MakeSearchable($models))
                ->onQueue($models->first()->syncWithSearchUsingQueue())
                ->onConnection($models->first()->syncWithSearchUsing()));
    }
public function queueMakeSearchable($models)
    {
        if ($models->isEmpty()) {
            return;
        }

        if (! config('scout.queue')) {
            return $models->first()->searchableUsing()->update($models);
        }

        dispatch((new MakeSearchable($models))
                ->onQueue($models->first()->syncWithSearchUsingQueue())
                ->onConnection($models->first()->syncWithSearchUsing()));
    }
public function queueMakeSearchable ( $ models ) { if ( $ models -> isEmpty ( ) ) { return ; } if ( ! config ( 'scout.queue' ) ) { return $ models -> first ( ) -> searchableUsing ( ) -> update ( $ models ) ; } dispatch ( ( new MakeSearchable ( $ models ) ) -> onQueue ( $ models -> first ( ) -> syncWithSearchUsingQueue ( ) ) -> onConnection ( $ models -> first ( ) -> syncWithSearchUsing ( ) ) ) ; }
Dispatch the job to make the given models searchable.

@param  \Illuminate\Database\Eloquent\Collection  $models
@return void
Dispatch the job to make the given models searchable .