for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Commands\Redis;
use App\Commands\BaseCommand;
class Open extends BaseCommand
{
/**
* The signature of the command.
*
* @var string
*/
protected $signature = 'redis:open';
* The description of the command.
protected $description = 'Open Redis cli';
* Execute the console command.
* @return void
public function handle(): void
if (setting('use_redis') != 'on') {
$this->error('Not using docker redis');
return;
}
$this->dockerCompose
->runContainer("redis")
->append("redis-cli -h redis")
->interactive()
->perform();