dimanche 27 novembre 2016

laravel 5 dynamic mysql database


how can I change the database in Laravel dynamic? Lets say we have the following variables:

  • $host (MySQL hostname / IP)
  • $user (MySQL user name)
  • $name (MySQL database name)
  • $pass (MySQL user password)

How can I connect to this mysql server in Laravel 5 without setting it every time in the config?

Greetings



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire