Best method to use Bootstrap in Laravel 4

前端 未结 3 1510
醉梦人生
醉梦人生 2021-02-06 08:55

I am using now Laravel 4,
What is the best method to use bootstrap for my site?
Is there some stuff I need to change and where do I put the css files?

Someone sa

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 09:01

    Here's the approach if you don't want to use bower.

    • Download bootstrap and extract the contents inside public/components/

    • Using Blade as your view compiler, use it like this:


    
    

    or like this

    {{ HTML::style('components/bootstrap/dist/css/bootstrap.min.css') }}
    

提交回复
热议问题