You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling the phar the commands listed in the hidden section still show in the list.
I created a new cli application, built the phar and the following commands are shown:
➜ movie-cli cd builds/
➜ builds php application
Application unreleased
USAGE: application [options] [arguments]
inspire Display an inspiring quote
test Run the application tests
schedule:list List the scheduled commands
schedule:run Run the scheduled commands
stub:publish Publish all stubs that are available for customization
But they are in the hidden section
'hidden' => [
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
Symfony\Component\Console\Command\DumpCompletionCommand::class,
Symfony\Component\Console\Command\HelpCommand::class,
Illuminate\Console\Scheduling\ScheduleRunCommand::class,
Illuminate\Console\Scheduling\ScheduleListCommand::class,
Illuminate\Console\Scheduling\ScheduleFinishCommand::class,
LaravelZero\Framework\Commands\StubPublishCommand::class,
],
If I add them to the remove section, they do not show in dev or prod.
Also, how do I hide the test command in production?
The text was updated successfully, but these errors were encountered:
What I ended up doing, as did not know about the AppServiceProvider trick, was putting $this->setHidden(true); in my command constructors. This may not work for you @jwhulette as you want to hide vendor commands, but may be helpful for others who want more granular control.
When compiling the phar the commands listed in the hidden section still show in the list.
I created a new cli application, built the phar and the following commands are shown:
➜ movie-cli cd builds/
➜ builds php application
Application unreleased
USAGE: application [options] [arguments]
inspire Display an inspiring quote
test Run the application tests
schedule:list List the scheduled commands
schedule:run Run the scheduled commands
stub:publish Publish all stubs that are available for customization
But they are in the hidden section
'hidden' => [
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
Symfony\Component\Console\Command\DumpCompletionCommand::class,
Symfony\Component\Console\Command\HelpCommand::class,
Illuminate\Console\Scheduling\ScheduleRunCommand::class,
Illuminate\Console\Scheduling\ScheduleListCommand::class,
Illuminate\Console\Scheduling\ScheduleFinishCommand::class,
LaravelZero\Framework\Commands\StubPublishCommand::class,
],
If I add them to the remove section, they do not show in dev or prod.
Also, how do I hide the test command in production?
The text was updated successfully, but these errors were encountered: