1 | initial version |
The process for including a new menu link in the sidebar menu of Laravel-Admin involves the following steps:
$router->get('your-link-url', 'YourController@yourMethod')->name('your-link-name');
Replace "your-link-url" with the desired URL for the menu link, "YourController" with the name of your controller, "yourMethod" with the name of the method that will handle the request, and "your-link-name" with the name you want to give to the menu link.
return view('your-view-name');
Replace "your-view-name" with the name of the view file you want to display.
[
'text' => 'Your Menu Link Text',
'url' => route('your-link-name'),
]
Replace "Your Menu Link Text" with the text you want to display for the menu link, and "your-link-name" with the name you defined in step 2.