shinobicorp / laravel-stassets
A laravel4 package to easily switch between Local and CDN assets, based on environment
Installs: 197
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/shinobicorp/laravel-stassets
Requires
- php: >=5.3.0
- illuminate/config: 4.*
- illuminate/support: 4.*
This package is not auto-updated.
Last update: 2016-06-10 12:50:14 UTC
README
Not actively maintained, use http://github.com/metrique/laravel-cdnify
A laravel4 package to help switch between Local and CDN static assets depending on the current environment.
Install
- Require
"shinobicorp/laravel-stassets": "dev-master"
in yourcomposer.json
file. - Run
composer install
- Add
'ShinobiCorp\Stassets\StassetsServiceProvider'
Service Provider toapp/config/app.php
in the providers array. - Add
'Stasset' => 'ShinobiCorp\Stassets\StassetFacade'
Alias to app/config/app.php in the aliases array. - Publish the config with
php artisan config:publish shinobicorp/laravel-stassets
Usage
Stassets::get('path/to/your/asset.file');
- Create and edit new environment configurations under
app/config/packages/shinobicorp/laravel-stassets
for eg:app/config/packages/shinobicorp/laravel-stassets/production/stassets.php