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 it was a bad database username. I had it set in my config/database.php as well as the .env file and one of them was different than the other. Found this thread when searching, thought this might help someone.