Skip to content

A Laravel package for including a menu in an app

Notifications You must be signed in to change notification settings

finnor/laravel-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel App Menus for UAB Pathology - GDB

Requires

  • Bootstrap 4 for default view
  • FontAwesome if using icons
  • Menu only displays for authenticated views
  • isAdmin() implemented in the User model
  • user_groups table using id as the primary key

Getting Started

Install the package via composer, publish the vendor files, and migrate the new menu tables

composer require aflanry/menus --dev
php artisan vendor:publish
php artisan migrate

Edit config/menu.php using the template with your menu. Then you can seed the database with the values in the config file.

php artisan db:seed --class=MenuSeeder

Next the sass and javascript for the menus must be added to your bundles

@import("vendor/menu/_menu");
require('./vendor/menu/menu');

Finally include the menu view in your layout!

@include('menu::menu')

Editing the menu view

The menu view is published in the resources/views/vendor/menu folder You can edit the menu as you see fit!

About

A Laravel package for including a menu in an app

Resources

Stars

Watchers

Forks

Packages

No packages published