the auth boilerplate already includes bootstrap?
how to integrate bootstrap with Laravel
hi, I need integrate bootstrap with My Laravel app. I do not use bootstrap theme only css and js files. currently using cdn via internet. I need exit cdn and download bootstrap files and paste it in public folder and connect with Laravel app. I have used auth command to create login form. so, I need to change app.blade.php file according to this matter also. give me better solutions.
No, its not pulled in from a CDN by default, it is included in app.css
In the master layout (by default app.blade.php), remove your CDN lines
if you are not interested in compiling your own assets
download the bootstrap package and
- copy bootstrap.min.css into your public/css folder
- copy bootstrap.min.js into your public/js folder
Add the following to the head area of app.blade.php
<link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">
Before the closing </body> in app.blade.php
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="{{ asset('js/bootstrap.min.js') }}"></script>
You will probably need to do the same with jQuery if you need it without coming from CDN
Please or to participate in this conversation.