【发布时间】:2016-12-08 22:57:06
【问题描述】:
我已经通过 composer 使用这个 cmd 命令在 Laravel 项目中安装了bootstrap plugin:
composer require twbs/bootstrap:4.0.0-alpha.3
问题是:
1) 我是 laravel 的新手,为此问题搜索了很多,我发现的每一个都是关于使用 nmp 命令的,我使用的是 Windows 而不是 Mac强>
2) 我在公用文件夹中没有任何引导文件。未找到此结构:
├── 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 安装有什么区别?以及如何以任何方式将引导文件集成到我的刀片中?
同样的问题与安装 blogify 和 AdminLTE.. 无法使用通过 composer 下载的任何包
使用:
Windows 10 XAMP
【问题讨论】:
-
要包含 css 文件(在您的情况下为引导程序),只需在刀片模板中包含 CSS 文件...当然,您需要将文件放在“公共”文件夹中。跨度>
标签: twitter-bootstrap laravel composer-php laravel-5.2