Код: Выделить всё
$this->dataFromMLS = Article::search($this->search, function(, string $query, array $options ) {
$options['attributesToHighlight'] = ['title', 'text', 'text_shortly'];
return $meiliSearch->search($query, $options);
})
->paginateRaw(10)->items();
Код: Выделить всё
{{ var_dump($dataFromMLS); }}

и
[img]https://i.sstatic. net/1enSjd3L.png[/img]
Я получил ошибку:
Код: Выделить всё
Undefined array key "hits"
Код: Выделить всё
dataFromMLS['hits'] ::{{ print_r($dataFromMLS['hits'], true) }}
Подробнее здесь: https://stackoverflow.com/questions/790 ... blade-file
Мобильная версия