Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
Add Mmenu to Laravel using NPM

I'm trying to add mmenu.js to a Laravel 8 project. I've installed it using NPM, but I'm having trouble including it in the project.

Right now, in bootstrap.js I have this:

import Mmenu from 'mmenu-js';
window.Mmenu = Mmenu;

There's no detailed documentation on the site for how to install on Laravel, so any help would be appreciated!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can include in your project by writing code in the head section of page. Following is the example to put menu in your project.

    <link href="path/to/css/mmenu.css" rel="stylesheet" />
    <script src="path/to/js/mmenu.js"></script>

    <!-- Fire the plugin -->
    <script>
        document.addEventListener(
            "DOMContentLoaded", () => {
                new Mmenu( "#my-menu" );
            }
        );
    </script>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!