composer dump-autoload do nothing
composer dump-autoload do nothing I am trying to execute the command composer dump-autoload on a Laravel project, but it does nothing. It only writes Generating optimized autoload files , then stops. composer dump-autoload Generating optimized autoload files I tried it on an other project, and it worked well (discovered packages, and so on). I also tried it after updating composer ( composer self-update ), after checking that my composer.json is right ( composer validate ). Nothing changed... composer self-update composer validate The command composer update works well on the update part, but does the same when it arrives to the dump-autoload one. composer update Does someone have a solution? Thanks! 1 Answer 1 Check your composer.json , pre-install-cmd and post-autoload-dump was missing. composer.json pre-install-cmd post-autoload-dump Your scripts should look like this scripts { "scr...