It does not seem to call the put method directly.
https://github.com/laravel/framework/blob/9.x/src/Illuminate/Filesystem/FilesystemAdapter.php#L334
Are you running version 3 of flysystem? https://laravel.com/docs/9.x/upgrade#flysystem-3
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey,
We updated our application to Laravel 9 with Flysystem 3.
In our code we create a new file via:
Storage::disk('concepts')->put($concept->id.'.docx', file_get_contents($tmpPath));
After the update this gives the following error:
Call to undefined method League\Flysystem\Filesystem::put()
The flysystem update guide says that put() is changed to write().
But in the storage facade they still use put like our code. Also the laraval 9 documentation suggest to use put. https://laravel.com/docs/9.x/filesystem#the-local-driver
How can we fix this error?
Thanks
Please or to participate in this conversation.