3ev/laravel-assets 问题修复 & 功能扩展

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

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

3ev/laravel-assets

最新稳定版本:v1.1.1

Composer 安装命令:

composer require 3ev/laravel-assets

包简介

3ev's internal Laravel asset helpers

README 文档

README

This library is used internally at 3ev as part of a custom Laravel asset pipeline. It's not yet ready for public use, but feel free to play around with it.

Installation

$ composer require "3ev/laravel-assets:~1.0"

Then, you'll need to add the following service provider to your app.php:

// config/app.php

return [
    'providers' => [
        'Tev\Assets\Providers\AssetsServiceProvider'
    ]
];

and publish the package config:

$ php artisan vendor:publish --provider="Tev\Assets\Providers\AssetsServiceProvider"

Usage

The default configuration sets up assets to be loaded from public/build/assets/, with the revision manifest file (from gulp-rev) configured at public/build/assets/rev-manifest.json.

The library provides a simple helper method which will load a versioned or unversioned asset seemlessly from public/build/assets/. For example, to load a compiled CSS file you might add the following to your template:

<link rel="stylesheet" type="text/css" href="{{ tev_asset('css/style.css') }}" />

or to load a static image you might do:

<img src="{{ tev_asset('img/logo.png') }}" title="My Logo" alt="My Logo" />

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 8
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-04-20