I've pulled in laravel using
new laravel app
Then i've tried pulling in laracasts/flash using
composer require laracasts/flash
Things seem to be going ok untill it gets to "Generating autoload files" I'm then getting an error..
Installation failed, reverting ./composer.json to its original content. [ErrorException] Argument 1 passed to Composer\Autoload\ClassLoader::addClassMap() must be of the type array, integer given, called in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php on line 723 and defined
I have no idea why this has started happening, it happens whenever composer gers to generating autoload files....
Can anyone help me sort this out please?