I am trying to install mdbootstrap vue into a Laravel 5.6 project, but i realy don't understand how i suppose to do it.
If somebody can give me a little tutorial, it would be nice of you ;-)
I am trying to install mdbootstrap vue into a Laravel 5.6 project, but i realy don't understand how i suppose to do it.
If somebody can give me a little tutorial, it would be nice of you ;-)
Try this(updated)...
(Assuming you have already installed laravel)
Go to your project directory and do:
npm install --save mdbvue
You will also need:
npm install --save-dev babel-preset-stage-2
next go to
resources/js/bootstrap.js
and under therequire('bootstrap');
addrequire('mdbvue');
it should look something like this:Next go to
resources/sass/app.scss
and add the MDB css under the bootstrap import, you might also need to import the font-awesome css:Now to compile your
app.css
andapp.js
files just donpm run dev
With this everything should be up and running and you are free to use
MDBvue
components or simply useMDB
jQuery version.This worked for me on a Laravel 5.7 project. Hope this helps.