PHP code example of al-one / laravel-redis-extendable

1. Go to this page and download the library: Download al-one/laravel-redis-extendable library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

al-one / laravel-redis-extendable example snippets


# config/app.php


return [

    'providers' => [
        // Illuminate\Redis\RedisServiceProvider::class,
        Alone\LaravelRedisExtendable\RedisServiceProvider::class,
    ],

];

use Illuminate\Support\Facades\Redis;

Redis::extend('predis_listened',function()
{
    return new \Alone\LaravelPredisListened\PredisListenedConnector;
});