Laravel Bootstrap - 如何使用包

时间:2016-08-03 07:16:27

标签: twitter-bootstrap laravel composer-php laravel-5.2 packages

我已经使用这个cmd命令在作曲家的Laravel项目中安装了bootstrap插件:

composer require twbs/bootstrap:4.0.0-alpha.3

但我在公共文件夹中没有任何引导程序文件。找不到这种结构:

├── css/
│   ├── bootstrap.css
│   ├── bootstrap.css.map
│   ├── bootstrap.min.css
│   ├── bootstrap.min.css.map
│   ├── bootstrap-theme.css
│   ├── bootstrap-theme.css.map
│   ├── bootstrap-theme.min.css
│   └── bootstrap-theme.min.css.map
├── js/
│   ├── bootstrap.js
│   └── bootstrap.min.js
└── fonts/
    ├── glyphicons-halflings-regular.eot
    ├── glyphicons-halflings-regular.svg
    ├── glyphicons-halflings-regular.ttf
    ├── glyphicons-halflings-regular.woff
    └── glyphicons-halflings-regular.woff2

如何从供应商加载引导程序到我的刀片?

什么手动下载引导文件和使用composer安装它之间的区别?以及如何以任何方式在我的刀片中集成引导程序文件?

二手

  • Windows 10
  • XAMP

1 个答案:

答案 0 :(得分:2)

文件位于/ vendor文件夹中。

由于您需要在公共文件夹中使用它们,您可以手动复制它们,或者更适合任何大型项目,使用Laravel的Elixir

使用Elixir,您可以执行与Gulp相似的操作:Lint,Minify,混合文件和版本控制等等。

当然,您可以定义输入文件夹(/ vendor)和输出文件夹(/ public)。