src/Searchable.php
public function getMapping()
    {
        $mapping = $this->mapping ?? [];

        if ($this::usesSoftDelete() && config('scout.soft_delete', false)) {
            Arr::set($mapping, 'properties.__soft_deleted', ['type' => 'integer']);
        }

        return $mapping;
    }
public function getMapping()
    {
        $mapping = $this->mapping ?? [];

        if ($this::usesSoftDelete() && config('scout.soft_delete', false)) {
            Arr::set($mapping, 'properties.__soft_deleted', ['type' => 'integer']);
        }

        return $mapping;
    }
public function getMapping ( ) { $ mapping = $ this -> mapping ?? [ ] ; if ( $ this :: usesSoftDelete ( ) && config ( 'scout.soft_delete' , false ) ) { Arr :: set ( $ mapping , 'properties.__soft_deleted' , [ 'type' => 'integer' ] ) ; } return $ mapping ; }
Get the mapping.

@return array
Get the mapping .