mezatech/assets-cdn 问题修复 & 功能扩展

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

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

mezatech/assets-cdn

最新稳定版本:v1.1

Composer 安装命令:

composer require mezatech/assets-cdn

包简介

Easily load your assets from a CDN when on production.

README 文档

README

Easily display your Laravel assets through a cdn without having to change a line in your views.

Installation

Add the following require to your composer.json file:

"require": {
	...
	"amrsoliman/assets-cdn": "1.*"
},
...
"post-install-cmd": [
	...
	"php artisan assets-cdn:update"
],

Then run composer update

Add "AmrSoliman\AssetsCdn\AssetsCdnServiceProvider", to the list of providers in config/app.php.

Run php artisan vendor:publish

Go to file config/assets-cdn.php and configure your CDN. We recommend only enabling it in production.

Note on the CDN

Any CDN works provided that the following conditions are met:

  1. The path on your server is the same as the path on the CDN (i.e. yoursite.com/assets/image.png = the.cdn.net/assets/image.png)
  2. The CDN passes through query strings, so that we can invalidate previous versions of your file when you install a new commit?

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-28