PHP code example of josiasmontag / laravel-redis-mock
1. Go to this page and download the library: Download josiasmontag/laravel-redis-mock 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/ */
josiasmontag / laravel-redis-mock example snippets
'redis' => [
'client' => env('REDIS_CLIENT', 'predis'),
...
],
/**
* @param $app
* @return string[]
*/
protected function getPackageProviders($app): array
{
return [
YourPackageServiceProvider::class,
\Lunaweb\RedisMock\Providers\RedisMockServiceProvider::class
];
}