Reputation: 639
I've installed the bootstrap plugin within Laravel project by composer using this cmd command:
composer require twbs/bootstrap:4.0.0-alpha.3
Problem is:
1) I'm new to laravel and searched a lot for this problem, every this I found is about using nmp
command and I'm using Windows not Mac
2) 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 ?
same problem with installing blogify and AdminLTE.. can't use any package that downloaded with composer
Used:
Windows 10 XAMP
Upvotes: 0
Views: 124
Reputation: 1669
how to load bootstrap from vendor to my blade ?
As the manual mentions, you have more options to install bootstrap.
Download the latest release. Clone the repo: git clone https://github.com/twbs/bootstrap.git. Install with Bower: bower install bootstrap. Install with npm: npm install bootstrap@3. Install with Meteor: meteor add twbs:bootstrap. Install with Composer: composer require twbs/bootstrap.
Try other options too, if you have any installed.
The goal is to get the files into the /public folder, from where you can access those files from browser and the HTML can work properly.
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 ?
Nothing much. Composer, npm, bower and others will download the files from repository to the folder where you have run the command.
So run those commands in public folder.
You did not mention if there were any errors or something that could refer to an uncompleted operation.
If commands do not work, you still have manual download, which - as already told - should be saved to the public folder.
Your index.blade.php should have the following in the tag:
<link href="<?php echo url("css/bootstrap.min.css"); ?>" stylesheet' type='text/css'>
or using elixir
<link href="{{ elixir('css/app.css') }}" rel="stylesheet">
Upvotes: 1