I have installed the plugin MacFJA/php-redisearch using the following command
composer require macfja/redisearch
Issue:
Complete code:
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redis;
use DateTime;
use FKRediSearch\RediSearch\Setup;
use MacFJA\RediSearch\Redis\Client\ClientFacade;
class CommandName extends Command
{
protected $signature = 'command:commandName';
protected $description = 'Command description';
public function __construct()
{
parent::__construct();
}
public function handle()
{
$clientFacade = new ClientFacade();
}
}
Can someone share why the issue is thrown?