cookie_good
2 months ago

how to add bootstrapjs

Posted 2 months ago by cookie_good

So a few versions ago, probably Laravel 5.7, I used

php artisan preset none

to remove the default scaffolding from my project.

I have since upgraded to Laravel 6.1, and now I am having trouble putting bootstrap js back. This my app.js in resources/js/app.js

require('jquery');
require('./boostrap');

resources/js/bootstrap.js imports lodash, but does nothing else. I have an entire folder in node_modules/bootstrap that has bootstrap.js modules, and nothing is linked to the resources folder. How do I do that? Do I have import each js modules, such as 'alert.js' or 'modal.js'

Please sign in or create an account to participate in this conversation.