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

[8.x] Easily set a null cache driver #35262

Merged
merged 1 commit into from Nov 18, 2020
Merged

Conversation

browner12
Copy link
Contributor

if the passed $name is null or 'null', we'll build up a config with a null driver, so the user does not have to define it in the config file.

this is identical to how other Managers handle this.

https://github.com/laravel/framework/blob/8.x/src/Illuminate/Queue/QueueManager.php#L208

apologies for not adding a test. I tried to find similar examples in some of the other Manager tests to copy, but could not.

if the passed `$name` is `null` or `'null'`, we'll build up a config with a null driver, so the user does not have to define it in the config file.
@taylorotwell taylorotwell merged commit 3f6bb3b into laravel:8.x Nov 18, 2020
@browner12 browner12 deleted the null-cache branch November 18, 2020 15:16
@browner12 browner12 restored the null-cache branch November 18, 2020 15:17
@browner12 browner12 deleted the null-cache branch November 18, 2020 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants