> For the complete documentation index, see [llms.txt](https://docs.laravel-haystack.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.laravel-haystack.dev/getting-started/how-it-works.md).

# How It Works

Laravel Haystack works by storing your jobs on the database and then queuing the job onto the desired connection. The Flowchart below represents the flow Haystack follows.

<figure><img src="https://3661954063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTer8PeMHAsUZ2b5ahmh7%2Fuploads%2F4Q1epvKNJ6UMlnDIlzE3%2FLaravel%20Haystack%20Flow.png?alt=media&amp;token=5bcdf9f1-efb2-475a-8b5e-b258f2e5a4f6" alt=""><figcaption></figcaption></figure>
