I create new db in phpmyadmin and new tables.
Then i do
public function next(Request $request){ $langs = DB::connection(\'mydb\')->select(
You're using single connection, so you don't need to specify it:
$langs = DB::table('lang')->get();
You should use connection() method only when you're working with multiple DB connections.
connection()