public static function makeAllSearchable()
    {
        $self = new static;

        $softDelete = static::usesSoftDelete() && config('scout.soft_delete', false);

        $self->newQuery()
            ->when($softDelete, function ($query) {
                $query->withTrashed();
            })
            ->orderBy($self->getKeyName())
            ->searchable();
    }
public static function makeAllSearchable()
    {
        $self = new static;

        $softDelete = static::usesSoftDelete() && config('scout.soft_delete', false);

        $self->newQuery()
            ->when($softDelete, function ($query) {
                $query->withTrashed();
            })
            ->orderBy($self->getKeyName())
            ->searchable();
    }
public static function makeAllSearchable ( ) { $ self = new static ; $ softDelete = static :: usesSoftDelete ( ) && config ( 'scout.soft_delete' , false ) ; $ self -> newQuery ( ) -> when ( $ softDelete , function ( $ query ) { $ query -> withTrashed ( ) ; } ) -> orderBy ( $ self -> getKeyName ( ) ) -> searchable ( ) ; }
Make all instances of the model searchable.

@return void
Make all instances of the model searchable .