Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

imnhasan's avatar

A timeout options in laravel scout

I'm using Laravel Scout, but I can't find a timeout option. Is there a way to set a timeout or configure the search to use Meilisearch? I'm looking for something along those lines.

$search = Product::search(request()->q)
    ->options([
    'filter' => $filter,
    'limit' => (int)$limit,
    'offset' => (int)$offset,
    'timeoutMs' => 3, // i need something for timeout
    ])
    ->when(($inStock), function ($query) {
        return $query->where('stock_status ', 'In Stock');
    })
    ->orderBy('stock_status_id', 'asc')
    ->raw();
0 likes
0 replies

Please or to participate in this conversation.