PHPackages                             kosiec/laravel-bower - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kosiec/laravel-bower

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kosiec/laravel-bower
====================

Generates HTML tags for all of your installed bower dependencies

1.0.0(11y ago)2442[1 issues](https://github.com/Supericy/laravel-bower/issues)MITPHPPHP &gt;=5.4.0

Since Nov 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Supericy/laravel-bower)[ Packagist](https://packagist.org/packages/kosiec/laravel-bower)[ Docs](https://github.com/Supericy/laravel-bower)[ RSS](/packages/kosiec-laravel-bower/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Laravel Bower Component
=======================

[](#laravel-bower-component)

Automatically load all frontend dependencies that were installed via Bower (ie. js/css assets). Components will automatically be ordered so that a component's required dependencies are loaded ahead of them.

Installation
------------

[](#installation)

Require this package with composer:

```
composer require kosiec/laravel-bower

```

After updating composer, add the LaravelBowerServiceProvider to your providers array in app/config/app.php

```
'Kosiec\LaravelBower\LaravelBowerServiceProvider',

```

Out of the box, the service will look inside `public/bower_components` directory for all of your frontend assets, however, if you wish to change the configuration, you can public the config via:

```
php artisan config:publish kosiec/laravel-bower

```

(Keep in mind, it's best to keep your bower components inside your public folder, as anything outside of it may not be accessible from the web.

Usage
-----

[](#usage)

Simply add your blade tag (default is `includeBowerDependencies`) to your master template, either in your header or at the bottom of your body. Example:

```
// master-layout.blade.php

        @includeBowerDependencies()

     ...
