kosiec/laravel-bower 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kosiec/laravel-bower

最新稳定版本:1.0.0

Composer 安装命令:

composer require kosiec/laravel-bower

包简介

Generates HTML tags for all of your installed bower dependencies

README 文档

README

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

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

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
<html>
    <head>
        @includeBowerDependencies()
    </head>

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

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

统计信息

  • 总下载量: 44
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固