ErrorException: array_key_exists() expects parameter 2 to be array, null given in file /var/www/laravel/vendor/laravel/framework/src/Illuminate/Collections/Arr.php on line 172
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'array_key_exist...', '/var/www/larave...', 172, Array)
#1 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(172): array_key_exists('client', NULL)
#2 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(270): Illuminate\Support\Arr::exists(NULL, 'client')
#3 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(521): Illuminate\Support\Arr::forget(NULL, Array)
#4 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Redis/RedisServiceProvider.php(21): Illuminate\Support\Arr::pull(NULL, 'client', 'phpredis')
#5 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(873): Illuminate\Redis\RedisServiceProvider->Illuminate\Redis\{closure}(Object(Illuminate\Foundation\Application), Array)
#6 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build(Object(Closure))
#7 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\Container\Container->resolve('redis', Array, true)
#8 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\Foundation\Application->resolve('redis', Array)
#9 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\Container\Container->make('redis', Array)
#10 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(1419): Illuminate\Foundation\Application->make('redis')
#11 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(198): Illuminate\Container\Container->offsetGet('redis')
#12 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(107): Illuminate\Cache\CacheManager->createRedisDriver(Array)
#13 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(82): Illuminate\Cache\CacheManager->resolve('redis')
#14 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(60): Illuminate\Cache\CacheManager->get('redis')
#15 /var/www/laravel/vendor/spatie/laravel-permission/src/PermissionRegistrar.php(69): Illuminate\Cache\CacheManager->store()
#16 /var/www/laravel/vendor/spatie/laravel-permission/src/PermissionRegistrar.php(59): Spatie\Permission\PermissionRegistrar->getCacheStoreFromConfig()
#17 /var/www/laravel/vendor/spatie/laravel-permission/src/PermissionRegistrar.php(49): Spatie\Permission\PermissionRegistrar->initializeCache()
#18 [internal function]: Spatie\Permission\PermissionRegistrar->__construct(Object(Illuminate\Cache\CacheManager))
#19 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(917): ReflectionClass->newInstanceArgs(Array)
#20 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build('Spatie\\Permissi...')
#21 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\Container\Container->resolve('Spatie\\Permissi...', Array, true)
#22 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\Foundation\Application->resolve('Spatie\\Permissi...', Array)
#23 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\Container\Container->make('Spatie\\Permissi...', Array)
#24 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(182): Illuminate\Foundation\Application->make('Spatie\\Permissi...')
#25 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(124): Illuminate\Container\BoundMethod::addDependencyForCallParameter(Object(Illuminate\Foundation\Application), Object(ReflectionParameter), Array, Array)
#26 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Container\BoundMethod::getMethodDependencies(Object(Illuminate\Foundation\Application), Array, Array)
#27 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#28 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#29 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#30 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(653): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#31 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(924): Illuminate\Container\Container->call(Array)
#32 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(905): Illuminate\Foundation\Application->bootProvider(Object(Spatie\Permission\PermissionServiceProvider))
#33 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(Spatie\Permission\PermissionServiceProvider), 63)
#34 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(906): array_walk(Array, Object(Closure))
#35 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
#36 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application))
#37 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(153): Illuminate\Foundation\Application->bootstrapWith(Array)
#38 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(137): Illuminate\Foundation\Http\Kernel->bootstrap()
#39 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#40 /var/www/laravel/public/index.php(58): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#41 {main}