Commit 6f26ce6e authored by Taylor Otwell's avatar Taylor Otwell

Always return cache driver instance.

parent a26efbc2
...@@ -40,6 +40,8 @@ class Cache { ...@@ -40,6 +40,8 @@ class Cache {
throw new \Exception("Cache driver [$driver] is not supported."); throw new \Exception("Cache driver [$driver] is not supported.");
} }
} }
return static::$drivers[$driver];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment