Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5e3f7ab 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Oct 7, 2023
1 parent 626771d commit 21063e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/docs/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,13 @@ <h3><a href='#routing' id='routing'>Routing</a></h3>
<h2><a href='#navigation' id='navigation'>Navigation</a></h2>
<h3><a href='#menu' id='menu'>Menu</a></h3>
<p>To make it easier for users to access our screen, we can add a new menu item to the admin panel&rsquo;s navigation menu. This will allow users to click on a link in the menu to access the screen, rather than having to manually type the URL into the browser.</p>
<p>To add a new menu item to the navigation menu, we will need to open the <code>app/Orchid/PlatformProvider.php</code> file and add a new declaration to the <code>registerMainMenu()</code> method. This declaration will use the <code>Menu</code> method provided by Orchid to define a new menu item for our screen.</p>
<p>To add a new menu item to the navigation menu, we will need to open the <code>app/Orchid/PlatformProvider.php</code> file and add a new declaration to the <code>menu()</code> method. This declaration will use the <code>Menu</code> method provided by Orchid to define a new menu item for our screen.</p>
<pre><code class="language-php">use Orchid\Screen\Actions\Menu;

/**
* @return Menu[]
*/
public function registerMainMenu(): array
public function menu(): array
{
return [
// Other items...
Expand Down

0 comments on commit 21063e9

Please sign in to comment.