PHP code example of bangnokia / laravel-bunny-storage
1. Go to this page and download the library: Download bangnokia/laravel-bunny-storage 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/ */
bangnokia / laravel-bunny-storage example snippets
'bunny' => [
'driver' => 'bunny',
'storage_zone' => env('BUNNY_STORAGE_ZONE'),
'api_key' => env('BUNNY_API_KEY'),
'region' => env('BUNNY_REGION', \PlatformCommunity\Flysystem\BunnyCDN\BunnyCDNRegion::DEFAULT),
'pull_zone' => env('BUNNY_PULL_ZONE', ''), // optional if you want to access the file publicly
'root' => '', // optional, you could set a specific folder for upload like '/uploads'
],