1. Go to this page and download the library: Download cvega/mainmenu library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bash
use Cvega\Mainmenu\Http\Controllers\MainmenuController;
public function some_method_in_your_controller()
{
$mainmenu = new MainmenuController(); // retrieving menu structure from the Database
return view(YOUR BLADE TEMPLATE, [
'menu' => $mainmenu->main_menu,
]);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.