Add Bootstrap to laravel 5

来源:互联网 发布:powerdesigner生成sql 编辑:程序博客网 时间:2024/05/29 17:45

Hoho, after reading so many English pages tonight, I just wanna write some English- -!~

I found a good blog about this topic, and here is the site:
https://bhavyanshu.me/tutorials/styling-laravel-5-based-app-with-twitter-bootstrap/08/24/2015/

You just need to do one command to add bootstrap:

sudo npm install

in the project root to get bootstrap-sass and laravel-elixir.


"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"laravelcollective/html": "~5.0"
}

'providers' => [// ...'Collective\Html\HtmlServiceProvider',// ...],
'aliases' => [// ...  'Form' => 'Collective\Html\FormFacade',  'Html' => 'Collective\Html\HtmlFacade',// ...],

Then you can style your bladehtml with bootstrap.

0 0
原创粉丝点击