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),
'token_auth_key' => env('BUNNY_TOKEN_AUTH_KEY'), // optional if you want to generate temporaryUrls
'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'
'upload_options' => [
'connect_timeout' => 3,
'timeout' => 50,
'expect' => false,
], // optional; defaults are 5, 3600, and true
],