# Tomato Orders

<figure><img src="https://117397612-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSlG6RrSDmGrQX2xjM6AT%2Fuploads%2FYbgHe2r4vjQQrBxHswUo%2Fscreenshot.png?alt=media&#x26;token=8231b363-2c9c-43a3-9d14-bd74c46a3c1b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://117397612-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSlG6RrSDmGrQX2xjM6AT%2Fuploads%2F1GJduuie4cP96Q320WjO%2FScreenshot%202023-11-23%20at%204.34.05%E2%80%AFPM.png?alt=media&#x26;token=4278acb8-df2b-49b4-8c21-3048b41a8518" 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.
