vendor:publish --provider not found
necrogami opened this issue Β· comments
php application vendor:publish --provider "LaravelZero\Framework\Components\Updater\Provider"
[2022-07-19 02:44:00] development.ERROR: The "--provider" option does not exist. {"exception":"[object] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): The \"--provider\" option does not exist. at /home/necrogami/code/server-client/vendor/symfony/console/Input/ArgvInput.php:220)
[stacktrace]
#0 /home/necrogami/code/server-client/vendor/symfony/console/Input/ArgvInput.php(149): Symfony\\Component\\Console\\Input\\ArgvInput->addLongOption()
#1 /home/necrogami/code/server-client/vendor/symfony/console/Input/ArgvInput.php(82): Symfony\\Component\\Console\\Input\\ArgvInput->parseLongOption()
#2 /home/necrogami/code/server-client/vendor/symfony/console/Input/ArgvInput.php(71): Symfony\\Component\\Console\\Input\\ArgvInput->parseToken()
#3 /home/necrogami/code/server-client/vendor/symfony/console/Input/Input.php(55): Symfony\\Component\\Console\\Input\\ArgvInput->parse()
#4 /home/necrogami/code/server-client/vendor/symfony/console/Command/Command.php(267): Symfony\\Component\\Console\\Input\\Input->bind()
#5 /home/necrogami/code/server-client/vendor/symfony/console/Application.php(998): Symfony\\Component\\Console\\Command\\Command->run()
#6 /home/necrogami/code/server-client/vendor/symfony/console/Application.php(299): Symfony\\Component\\Console\\Application->doRunCommand()
#7 /home/necrogami/code/server-client/vendor/symfony/console/Application.php(171): Symfony\\Component\\Console\\Application->doRun()
#8 /home/necrogami/code/server-client/vendor/illuminate/console/Application.php(102): Symfony\\Component\\Console\\Application->run()
#9 /home/necrogami/code/server-client/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run()
#10 /home/necrogami/code/server-client/vendor/laravel-zero/framework/src/Kernel.php(96): Illuminate\\Foundation\\Console\\Kernel->handle()
#11 /home/necrogami/code/server-client/dns-taxi(37): LaravelZero\\Framework\\Kernel->handle()
#12 {main}
"}
The "--provider" option does not exist.
When following the manual for updating the updater strategy it tells us to vendor publish the updater so we can update the config. However trying to execute the command comes up that it doesn't exist.
+1
It looks like the whole "vendor:publish" command is not loaded
Hi, it looks like this was removed accidentally (or intentionally, @nunomaduro?) in this commit 3b351ca
. I've re-added this in f5454bd. ππ»
However, the issues with hiding console commands need to be addressed. I'll take a look at laravel-zero/framework#465 and see if we can get that merged as well. ππ» Actually, that doesn't help with hiding commands afaict. π€
I think this is basically an issue since the introduction of lazy loading in 9.x (laravel/framework@0aca5a9). I've opened laravel-zero/framework#468 which should help with resolving it...
Closed as part of v9.1.3 ππ»
Note: You'll need to add Illuminate\Foundation\Console\VendorPublishCommand::class
to your hidden
array in config/commands.php
π