PHP code example of juhasev / laravelcdn
1. Go to this page and download the library: Download juhasev/laravelcdn library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
juhasev / laravelcdn example snippets
'providers' => array(
//...
SampleNinja\LaravelCdn\CdnServiceProvider::class,
)
'aliases' => array(
//...
'CDN' => SampleNinja\LaravelCdn\Facades\CdnFacadeAccessor::class
)
bash
php artisan vendor:publish --provider 'SampleNinja\LaravelCdn\CdnServiceProvider'
bash
php artisan cdn:push
bash
php artisan cdn:empty