> For the complete documentation index, see [llms.txt](https://docs.tomatophp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tomatophp.com/plugins/tomato-menus/use.md).

# Use

you can use the menu provider on anywhere by our menu provider class it will return your menu anywhere on the app just use

```php
use TomatoPHP\TomatoMenus\Services\MenuRenderBase;

MenuRenderBase::menu($key, $by = 'key');
```

or you can use it with your tomato admin panel by setting the config of menu\_provider to be&#x20;

```php
"menu_provider" => TomatoPHP\TomatoMenus\Services\MenuRenderBase::class
```
