I create new db in phpmyadmin and new tables.
Then i do
public function next(Request $request){ $langs = DB::connection(\'mydb\')->select(
In my case I used 2 db connections and the second added was not cached, the command call: php artisan config:cache did the trick.
php artisan config:cache
To see what's going on it was sufficient to output the $connections variable in DatabaseManager->configure method.
$connections
DatabaseManager->configure