Replies: 1 comment 3 replies
-
3rd: call list with extra flag for current environment? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current behaviour
When you schedule a command with an environment filter on it like so:
and you call
php artisan schedule:list
It will still output as schedule even though the env is set to
APP_ENV=local
:Solutions
We could solve this in two ways:
1. Filter out based on the environments
We could simply filter on the environments changing this: https://github.com/laravel/framework/blob/10.x/src/Illuminate/Console/Scheduling/ScheduleListCommand.php#L53
to
2. Add the environments to the output
If we don't want this behaviour it would be nice if we at least print the environments / wether its active or not.
3. Other..?
Beta Was this translation helpful? Give feedback.
All reactions