Search code examples
laravellaravel-5composer-phplaravel-5.4vendor

Laravel 5.4 - error when vendor:publish executed command


I just installed Laravel 5.4.* and I have error when I execute this command:

php artisan vendor:publish

vagrant@homestead:~/projects/xxxx_com$ php artisan vendor:publish


  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Class 'League\Flysystem\MountManager' not found


vagrant@homestead:~/projects/xxxx_com$

Have you got an idea?


Solution

  • Probably you added new package to composer.json but you haven't run composer install. So make sure you run:

    composer install
    

    and after that run

    php artisan vendor:publish