Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use bootstrap 4 in Laravel 5.4?

I installed bootstrap 4 using npm on my laravel app. But I think bootstrap 3 working behind not bootstrap 4.
using command:

    npm install

Did I left something to do? Or do I need to manually import bootstrap to assets/sass/app.scss file or else?

like image 450
unreleased Avatar asked Feb 24 '17 15:02

unreleased


1 Answers

You have to manually change the link to bootstrap from resources/assets/sass/app.scss. You will see this line

@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; 

Replace with

@import "node_modules/bootstrap/scss/bootstrap"; 
like image 52
EddyTheDove Avatar answered Sep 22 '22 13:09

EddyTheDove