Laravelde iki database kullanma
app/config/database.php < ? php return array ( 'default' = > 'mysql' , 'connections' = > array ( # Our primary database connection 'mysql' = > array ( 'driver' = > 'mysql' , 'host' = > 'host1' , 'database' = > 'database1' , 'username' = > 'user1' , 'password' = > 'pass1' 'charset' = > 'utf8' , 'collation' = > 'utf8_unicode_ci' , 'prefix' = > '' , ) , # Our secondary database connection 'mysql_2' = > array ( 'driver' = > 'mysql' , 'host' = > 'host2'