PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Channaveer Hakari   Laravel Multiple Database   routes/web.php   Download  
File: routes/web.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Multiple Database
Connect to multiple databases in an application
Author: By
Last change:
Date: 3 years ago
Size: 135 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    echo \
DB::connection('mysql2')->getDatabaseName();
});