2017 © Pedro Peláez
 

library laravel-bower

Generates HTML tags for all of your installed bower dependencies

image

kosiec/laravel-bower

Generates HTML tags for all of your installed bower dependencies

  • Sunday, February 1, 2015
  • by Supericy
  • Repository
  • 1 Watchers
  • 2 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

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., (*1)

Installation

Require this package with composer:, (*2)

composer require kosiec/laravel-bower

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

'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:, (*4)

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., (*5)

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:, (*6)

// master-layout.blade.php
<html>
    <head>
        @includeBowerDependencies()
    </head>

    <body> ... </body
<html>

If you wish to use a different blade tag, you can change it within the config., (*7)

The Versions

01/02 2015

dev-dev

dev-dev https://github.com/Supericy/laravel-bower

Generates HTML tags for all of your installed bower dependencies

  Sources   Download

MIT

The Requires

 

by Chad Kosie

01/02 2015

dev-master

9999999-dev https://github.com/Supericy/laravel-bower

Generates HTML tags for all of your installed bower dependencies

  Sources   Download

MIT

The Requires

 

by Chad Kosie

10/11 2014

1.0.0

1.0.0.0 https://github.com/Supericy/laravel-bower

Generates HTML tags for all of your installed bower dependencies

  Sources   Download

MIT

The Requires

 

by Chad Kosie