PHP code example of mengino / redis-manager

1. Go to this page and download the library: Download mengino/redis-manager 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/ */

    

mengino / redis-manager example snippets




return [

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Base Path
    |--------------------------------------------------------------------------
    |
    | Base path for Redis Manager
    |
    */

    'base_path' => 'redis-manager',

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Middleware
    |--------------------------------------------------------------------------
    |
    | The Redis Manager's route middleware.
    |
    */

    'middleware' => [],

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Results Per Page
    |--------------------------------------------------------------------------
    |
    | Here you can configure for the number of results will show in the
    | Redis Manager search page.
    |
    */

    'results_per_page' => 50,

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Disable Commands
    |--------------------------------------------------------------------------
    |
    | The commands listed here was disabled when you use Redis Manager Console
    | to run commands. Feel free to add commands here which you do not want
    | users to use.
    |
    */

    'disable_commands' => [
        'flushdb'
    ]
];


RedisManager::auth(function ($request) {
    // return true / false;
});
shell
php artisan vendor:publish --provider="Encore\RedisManager\RedisManagerServiceProvider"