简体   繁体   中英

Understanding Coding of Menu in Laravel Voyager

Can anyone guide me where is

{{ menu('admin', '_json') }}

coming from in below code?

<admin-menu :items="{{ menu('admin', '_json') }}"></admin-menu>

Link of Github

It comes from Voyagers MenuBuilder (Laravel cms):

Link in your Laravel app (if you set PORT to 8000): http://127.0.0.1:8000/admin/menus

Here are the docs: https://voyager-docs.devdojo.com/core-concepts/menus-and-menu-builder#menu-as-json

_json is for retrieving menu items in form of an array.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM