Little optional cdn url prefixer, can be used as an replacement for the default asset helper
fridzema/cdn-prefixer is a Laravel package for little optional cdn url prefixer, can be used as an replacement for the default asset helper.
It currently has 0 GitHub stars and 42 downloads on Packagist (latest version v0.0.1).
Install it with composer require fridzema/cdn-prefixer.
Discover more Laravel packages by fridzema
or browse all Laravel packages to compare alternatives.
Last updated
composer require fridzema/cdn-prefixer
Add to providers array in config/app.php
Fridzema\CdnPrefixer\CdnPrefixerServiceProvider::class
Run in terminal
php artisan vendor:publish --tag=config
Use cdn() instead of asset() in your application now and it will be prefixed.
cdn('js/app.js')