Poula Adel
Poula Adel

Reputation: 639

Laravel Bootstrap - how to use the package

I've installed the bootstrap plugin within Laravel project by composer using this cmd command:

composer require twbs/bootstrap:4.0.0-alpha.3

but I didn't have any bootstrap files in the public folder. this structure is not found:

├── 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

how to load bootstrap from vendor to my blade ?

what is the difference between downloading bootstrap files manually and installing it with composer? and how to integrate the bootstrap files in my blade any way ?

Used:

Upvotes: 0

Views: 1227

Answers (1)

Rolf Pedro Ernst
Rolf Pedro Ernst

Reputation: 322

The files would be in the /vendor folder.

Since you need them in the public folder you can copy them over manually or, much preferably for any sizable project, make use of Laravel's Elixir.

With Elixir you can do something similar to what you would do with Gulp: Lint, Minify, Mixing Files and Versioning, etc...

And of course you can define an input folder (/vendor) and an output folder (/public).

Upvotes: 2

Related Questions