We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got this error:
Driver [bunnycdn] is not supported.
at .....\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php:149 145▕ 146▕ $driverMethod = 'create'.ucfirst($name).'Driver'; 147▕ 148▕ if (! method_exists($this, $driverMethod)) { ➜ 149▕ throw new InvalidArgumentException("Driver [{$name}] is not supported."); 150▕ } 151▕ 152▕ return $this->{$driverMethod}($config); 153▕ }
I did everything according to the documentation Laravel Framework 9.52.4
The text was updated successfully, but these errors were encountered:
Make sure the you add bunnycdn to config/filesystems.php, and extend the Storage facade in AppServiceProvider.
bunnycdn
config/filesystems.php
AppServiceProvider
And run php artisan config:clear just to make sure is not a cache issue.
php artisan config:clear
Sorry, something went wrong.
after some pain here an example what is ok for me
/** * Bootstrap any application services. */ public function boot(): void { Storage::extend('bunnycdn', function (Application $app, array $config) { $adapter = new BunnyCDNAdapter( new BunnyCDNClient( env('BUNNYCDN_STORAGE_ZONE'), env('BUNNYCDN_API_KEY'), BunnyCDNRegion::FALKENSTEIN ), env('BUNNYCDN_PULL_ZONE_URL') ); return new FilesystemAdapter( new Filesystem($adapter, $config), $adapter, $config ); }); }```
@calvez what ended up being painful, this looks similar to the one found on the README.md guide, no?
No branches or pull requests
Got this error:
Driver [bunnycdn] is not supported.
at .....\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php:149
145▕
146▕ $driverMethod = 'create'.ucfirst($name).'Driver';
147▕
148▕ if (! method_exists($this, $driverMethod)) {
➜ 149▕ throw new InvalidArgumentException("Driver [{$name}] is not supported.");
150▕ }
151▕
152▕ return $this->{$driverMethod}($config);
153▕ }
I did everything according to the documentation
Laravel Framework 9.52.4
The text was updated successfully, but these errors were encountered: