There are no commands defined in the "flare" namespace. #160
Replies: 4 comments
-
no answer |
Beta Was this translation helpful? Give feedback.
-
The command is registered here: and the command itself does exist. It works in all projects and it seems we're not getting any similar reports.If you find out why it's not working for you, and know the fix, we'd happily accept a PR. |
Beta Was this translation helpful? Give feedback.
-
@deep-codepaper I was having the same issue on production, but not on my local environment. After removing and reinstalling the package, trying lots of other solutions I had a look at the above service provider and saw that the only check that the protected function registerCommands(): void
{
if ($this->app['config']->get('flare.key')) {
$this->commands([
TestCommand::class,
]);
}
[…]
} Sure enough, I had a typo in the environment variable on production, and changing it to |
Beta Was this translation helpful? Give feedback.
-
i tried both 2.0 and 2.3 version but im still getting same issue on ubuntu:22.04. but still getting There are no commands defined in the "flare" namespace when run php artisan flare:test
Beta Was this translation helpful? Give feedback.
All reactions