skip to Main Content

Dynamic Database Connections in Laravel

As already known we can add more database connection in Laravel by updating app/config/database.php file in the connections array and using Schema::connection('mysql2')->... amd = DB::connection('mysql2')->select(...); to do queries. BUT, what if I want 50 databases or more, I can create…

VIEW QUESTION

Postgresql – How to optimize complex sorting?

I'm building a language learning platform, here are some tables: create table users ( id bigserial primary key, ... ) create table users_languages ( id bigserial primary key, user_id bigint not null constraint users_languages_user_id_foreign references users, level varchar(255) not null,…

VIEW QUESTION
Back To Top
Search