Error on DatabaseManager Line 118: undefined index cache

Update Capsule.php to avoid error.
Type: ErrorException
Code: 8
Message: Undefined index: cache
File: /var/www/myapp/vendor/illuminate/database/Illuminate/Database/DatabaseManager.php
Line: 118

Line 118 : $connection->setCacheManager($this->app['cache']);