Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache driver redis-sentinel not supported with Telescope #29

Open
georgeboot opened this issue Mar 23, 2020 · 2 comments
Open

Cache driver redis-sentinel not supported with Telescope #29

georgeboot opened this issue Mar 23, 2020 · 2 comments
Labels

Comments

@georgeboot
Copy link

This packages implementation is broken in Laravel 7. When you set your CACHE_DRIVER=redis-sentinel, it breaks with the following error:

  InvalidArgumentException 

  Driver [redis-sentinel] is not supported.

  at vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:110
    106|             if (method_exists($this, $driverMethod)) {
    107|                 return $this->{$driverMethod}($config);
    108|             } else {
    109|                 // dd(get_class($this), debug_backtrace(null, 2));
  > 110|                 throw new InvalidArgumentException("Driver [{$config['driver']}] is not supported.");
    111|             }
    112|         }
    113|     }
    114| 

      +15 vendor frames 
  16  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(Laravel\Telescope\TelescopeServiceProvider))

      +5 vendor frames 
  22  artisan:35
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

@georgeboot
Copy link
Author

Looks like this is related to Laravel Telescope. If you have telescope package installed, it will clash.

@cyrossignol
Copy link
Member

@georgeboot If you're using Laravel's package discovery and this package's automatic configuration, the Telescope service provider boots before this package installs the cache driver.

You can register the package's service provider manually in config/app.php so that it loads before other packages.

Another user found that installing Telescope as a dev dependency fixed the issue because those dependencies load after the application's runtime service providers.

@cyrossignol cyrossignol changed the title Cache driver redis-sentinel not supported in Laravel 7 Cache driver redis-sentinel not supported with Telescope Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants