fridzema / laravel-cdn-prefixer by fridzema

Little optional cdn url prefixer, can be used as an replacement for the default asset helper
37
0
2
Package Data
Maintainer Username: fridzema
Maintainer Contact: fridzema@gmail.com (Robert Fridzema)
Package Create Date: 2017-08-12
Package Last Update: 2017-08-12
Language: PHP
License: MIT
Last Refreshed: 2024-04-19 15:13:52
Package Statistics
Total Downloads: 37
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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')