Navigation sections are the primary building blocks of the control panel.
You can manually create a JSON file with the below attributes in the navigation directory.
You can create a new cp.navigation
entry using streams-cli.
php artisan entries:create cp.navigation
// // streams/cp/navigation/{id}.json
{
"title": "Documentation",
"stream": "docs",
"parent": null,
"buttons": {},
"route": {}
}
slug
The unique handle of the shortcut.
string
A (translatable) string for display purposes.
string
The contextual stream for this navigation section. Forms will create entries for this stream and tables will display entries for this stream, for example. The id will be assumed the same as the stream handle if not configured.
string
The id of the parent navigation item. Two levels of nesting are supported out of the box.
array
An associated array of buttons.
array
An associated array of additional route information.