Skip to content

Instantly share code, notes, and snippets.

@azophy
Created August 23, 2022 04:52
Show Gist options
  • Save azophy/9ba48f779b4f8f1963123c9249ec55ed to your computer and use it in GitHub Desktop.
Save azophy/9ba48f779b4f8f1963123c9249ec55ed to your computer and use it in GitHub Desktop.
Setting Redis as Laravel session driver

What need to be configured:

  • config/database.php:
    • redis_url -> could also be setup using env var REDIS_URL
  • config/session.php:
    • driver -> set to redis. or use env var SESSION_DRIVER
    • connection -> set to default. or use env var SESSION_CONNECTION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment