Lumen Error: Class ‘League\Flysystem\Adapter\Local‘ not found

When using the lumen framework, if file storage support is required, an error will be prompted
class’ League \ flysystem \ adapter \ local ‘not found

The main reason is the lack of extension libraries. However, remember to bring the version number
when introducing dependencies. The directory structure of the new version of League \ flysystem has changed, so that the corresponding classes cannot be found under lumen 8.0;

composer require league/flysystem:"^1.0

Read More: