shinobicorp / laravel-stassets
This package is abandoned and no longer maintained.
The author suggests using the metrique/laravel-cdnify package instead.
A laravel4 package to easily switch between Local and CDN assets, based on environment
dev-master
2016-02-07 00:30 UTC
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