How can use different redis connection in laravel

Viewed 7149

I am creating a laravel package, in this pacakge i need to save some data in redis, but i want this package to use different redis connection, so that if they can setup the redis details credential in package's config file and will use this connection for this package. I want to give freedom to use different redis connection to the package user.

If you have any idea how can i achieve this. Any help would be appreciated.

1 Answers
Related