Generate fails due to a dependency on League\Flysystem\Local. league/flysystem is installed but the class doesn't seem to exist.
php artisan ide-helper:generate
Error shown:
In FilesystemManager.php line 164:
Class 'League\Flysystem\Adapter\Local' not found
Looks like league/flysystem 2.0 changed its structure, so now this is in here:
Version 1.x is the one that fixes this error: composer require --dev league/flysystem=^1.1 but exhibits bug #1042 instead
The workaround I have now is:
composer require --dev league/flysystem=^1.1Edit _vendor/barryvdh/laravel-ide-helper/src/IdeHelperServiceProvider.php_
Remove or comment out this code (search for Application, lines 119-121 in mine):
if ((int) Application::VERSION < 8) {
return new PhpEngine();
}
Of course, this doesn't help that much if you want to commit everything in git and have it work later.
Most helpful comment
The workaround I have now is:
composer require --dev league/flysystem=^1.1Edit _vendor/barryvdh/laravel-ide-helper/src/IdeHelperServiceProvider.php_
Remove or comment out this code (search for
Application, lines 119-121 in mine):Of course, this doesn't help that much if you want to commit everything in git and have it work later.