We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acb34f3 commit 3a6d0baCopy full SHA for 3a6d0ba
src/Console/HorizonCommand.php
@@ -33,6 +33,16 @@ class HorizonCommand extends Command
33
*/
34
public function handle(MasterSupervisorRepository $masters)
35
{
36
+ $client = config('database.redis.client');
37
+
38
+ if ($client === 'phpredis' && ! extension_loaded('redis')) {
39
+ return $this->components->error('The PHP Redis extension is not installed.');
40
+ }
41
42
+ if ($client === 'predis' && ! class_exists(\Predis\Client::class)) {
43
+ return $this->components->error('Predis client is not installed. Run: composer require predis/predis');
44
45
46
if ($masters->find(MasterSupervisor::name())) {
47
return $this->components->warn('A master supervisor is already running on this machine.');
48
}
0 commit comments