# Tomato Orders

<figure><img src="/files/8y7BkxbqPPkVlSqxqCyk" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dImToXdK6VQND2sDFdPK" alt=""><figcaption></figcaption></figure>

### Installation

```
composer require tomatophp/tomato-orders
```

or as Module

```
composer require tomatophp/tomato-orders-module
```

after installing your package please run this command

```
php artisan tomato-orders:install
```

### Add Items & Search Components

now we need to add 2 components to app.js file

```javascript
import TomatoSearch from "../../vendor/tomatophp/tomato-orders/resources/js/TomatoSearch.vue";
import TomatoItems from "../../vendor/tomatophp/tomato-orders/resources/js/TomatoItems.vue";

createApp({
    render: renderSpladeApp({ el })
})
    .use(SpladePlugin, {
        max_keep_alive: 10,
        transform_anchors: false,
        progress_bar: true,
    })
    .component("TomatoSearch", TomatoSearch)
    .component("TomatoItems", TomatoItems)
```

now rebuild your assets

```bash
yarn & yarn build
```

### Changelog

Please see [CHANGELOG](https://github.com/tomatophp/tomato-orders/blob/master/CHANGELOG.md) for more information on what has changed recently.

### Security

Please see [SECURITY](https://github.com/tomatophp/tomato-orders/blob/master/SECURITY.md) for more information about security.

### Credits

* [Fady Mondy](mailto:info@3x1.io)

### License

The MIT License (MIT). Please see [License File](https://github.com/tomatophp/tomato-orders/blob/master/LICENSE.md) for more information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomatophp.com/plugins/tomato-orders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
