Logo
~/ About Contact Blog
7 years ago in Laravel

Changing the database connection on Laravel's Query Builder

While working for a client whose codebase had a lot of legacy code I faced an interesting challenge, I needed to change the database connection on an already instantiated query builder, and I couldn't do it the Laravel way. 

Featured

Writing and Publishing a Kotlin library

5 months ago in Web Development

Popular articles

Setting up WKHTMLTOPDF on Docker Alpine Linux

3 years ago in PHP

Changing the database connection on Laravel's Query Builder

7 years ago in Laravel

Sharing data between views in Laravel

7 years ago in Laravel

Categories

  • Web Development
    • PHP
      • Laravel
    • Javascript
    • MySQL
    • Ruby
  • Swift
    • iOS

Tags

alpine conference docker domain driven design eloquent golang gradle hello world ios javascript js knp-snappy kotlin laravel master-slave maven mysql oop performance php ruby ruby on rails swift sylius symfony traefik uibutton view composer view share wkhtmltopdf
Your Email Client
Gmail

@SašaBlagojević.