I need use bootstrap 3 with My Laravel app. I have download bootstarp and paste it Laravel public-css folder. now I need integrate its with My Laravel app. how can I do this? I do not use bootstrap theme. only css and js files. I need exit cdn.
I found an solution try this one
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 in app.blade.php add
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="{{ asset('js/bootstrap.min.js') }}"></script>
Laravel 5.2 comes with bootstrap sass in place. You can find it under the resources directory:
https://github.com/laravel/laravel/blob/5.2/resources/assets/sass/app.scss
Just uncomment the @import line and build the public resources with gulp or something. To include the javascript just include it in your document head like you would any other resource.
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With