Back

Hey Laravel Developers

Starting with Laravel v11.31.0, we have a new build() method available on the DB Facade in Laravel.

This new build() method allows you to generate database connections on the fly in your application code, instead of defining the connections in the database.php config file.

One practical example is when you want the user to provide database connection details so you can import or fetch certain data, such as product information.

image

49

  • No matching results...
  • Searching...

/ 1000