avoid ErrorException 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']);
Tanks.