We have updated laravel/framework to version ^9.0 and league/flysystem to ^3.0.
Now we have the following error:
Call to undefined method League\Flysystem\Filesystem::put()
Our code:
Storage::disk('disk-name')->put($concept->id.'.docx', file_get_contents($tmpPath));
In the flysystem upgrade guide they say: https://flysystem.thephpleague.com/docs/upgrade-from-1.x/
That put() changed to write() method.
When I look in the flysystem source they use:
vendor/league/flysystem/src/Filesystem.php
public function write(string $location, string $contents, array $config = []): void
But when I look in the Laravel 9 Storage facade they still use:
applications/kics/vendor/laravel/framework/src/Illuminate/Support/Facades/Storage.php
put
Also in the laravel 9 documenten they show examples that they suggest to use the put method. https://laravel.com/docs/9.x/filesystem#obtaining-disk-instances
Does anyone have an idea how to solve this?
Thanks!
`