Integrate Materialize css in Laravel 5.4

4

Could someone tell me how to install, materialize css in my project done in laravel ? I am currently working with the 5.4 version of laravel I ask this question, because I know it comes with bootstrap installed when you make a new project. If someone knows how to do it and I mean download the files and put them in my corresponding folders and not call them with the url address of the materialize page itself. Thank you very much

    
asked by Samuel Mena 26.04.2017 в 06:37
source

1 answer

1

The truth is that it is quite simple what you want, you just need to put the Materialize files in the public folder, in the corresponding subfolder:

  • CSS files normally go in public/css
  • JS files usually go in public/js

Next, reference the files in your view, probably a partial view, you can use LaravelCollective :

{!! Html::style('css/materialize.css) !!}

Or you can also do it in the typical HTML way:

<script src="/js/materialize.min.js"></script>

As suggested in a comment, the helper asset () also works in this case :

<script src="{{ asset('js/materialize.min.js') }}"></script>
    
answered by 26.04.2017 / 16:34
source