public static function search($query = '', $callback = null)
    {
        return app(Builder::class, [
            'model' => new static,
            'query' => $query,
            'callback' => $callback,
            'softDelete'=> static::usesSoftDelete() && config('scout.soft_delete', false),
        ]);
    }
public static function search($query = '', $callback = null)
    {
        return app(Builder::class, [
            'model' => new static,
            'query' => $query,
            'callback' => $callback,
            'softDelete'=> static::usesSoftDelete() && config('scout.soft_delete', false),
        ]);
    }
public static function search ( $ query = '' , $ callback = null ) { return app ( Builder :: class , [ 'model' => new static , 'query' => $ query , 'callback' => $ callback , 'softDelete' => static :: usesSoftDelete ( ) && config ( 'scout.soft_delete' , false ) , ] ) ; }
Perform a search against the model's indexed data.

@param  string  $query
@param  \Closure  $callback
@return \Laravel\Scout\Builder
Perform a search against the model s indexed data .