Skip to content
Advertisement

Metronic Laravel Integration

I am trying to integrate the metronic theme into my existing laravel project. I work in Laravel homestead structure.

I did the steps in the “https://keenthemes.com/metronic/?page=docs&section=laravel-integration” link one by one and I didn’t get any errors. However, the /laravel/public/js/app.js and /laravel/public/js/app.css files that did not occur as mentioned in step 6 did not occur. What could be the reason for this?

My webpack.mix.js file content:

JavaScript

Advertisement

Answer

You forgot to compile the sass and js files mentioned in step 4.

Add the following to your webpack.mix.js:

JavaScript

To fix the issue with bootstrap you have to make sure the import path is correct:

Change the following in resources/demo1/src/assets/sass/style.scss:

JavaScript

to

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement