mardi 9 octobre 2018

How to create a menu(navigation) in laravel using controller

I need to create a menu in laravel using controller. I have used the below code :

Find the below the Controller code :

class AboutController extends Controller
{

public function about(){

Menu::make('MyNavBar', function($menu){

    $menu->add('Home',     ['route'  => 'home.page']);
    $menu->add('About',    ['route'  => 'page.about']);

  });
  }
  }

Kindly help me with the steps for creating menu and the links for submenu using controller.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire