Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Publish

Muah edited this page Sep 15, 2017 · 58 revisions

Migrations

  • pages
  • menus
  • menu_page

Seeds

  • examples

Views

  • Navigation

    • SimpleMenu::menu.example for displaying the menu list.

      • internally we get all the available menuNames and its corresponding pages then we check if there is a view file equal to the menu name ex.menu.hero & if not we use menu.example instead, also in the view file you will get 2 variables

        • $PAGES : all the menu pages
        • $menuName : in case you want to do something depend on menuName.
    • SimpleMenu::menu.partials.r_params to resolve route params across several views.

    • SimpleMenu::menu.partials.nested to render the descendants/childrens of each menu item.

    • SimpleMenu::breadCrumb to display the current page breadCrumbs. "getAncestors"

    • SimpleMenu::langSwitcher to display the supported locales while resolving the route params during redirection.

  • Crud

    • resources/assets/vendor/SimpleMenu

      • in your main app js file, require('./path/to/vendor/SimpleMenu/js/comps')
      • in your main app scss file, @import "path/to/vendor/SimpleMenu/sass/style";
    • resources/lang/vendor/SimpleMenu.

    • for styling we use bulma

      Or Use another Framework

      • duplicate views/vendor/SimpleMenu/admin/bulma and rename it to the framework you want ex.bootstrap
      • duplicate resources/assets/vendor/SimpleMenu/js/bulma and rename it to the framework you want ex.bootstrap
      • set MIX_SM_FRAMEWORK to the framework name ex.MIX_SM_FRAMEWORK=bootstrap
      • start editing the new files.
      • run npm run watch to compile your js/css files.

Clone this wiki locally