Answers for "use multiple database in laravel"

PHP
1

use multiple database in laravel

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database1
DB_USERNAME=root
DB_PASSWORD=secret

DB_CONNECTION_SECOND=mysql
DB_HOST_SECOND=127.0.0.1
DB_PORT_SECOND=3306
DB_DATABASE_SECOND=database2
DB_USERNAME_SECOND=root
DB_PASSWORD_SECOND=secret
Posted by: Guest on November-30-2020
0

laravel 8 app with more than one database

<?php   namespace App;  use Illuminate\Database\Eloquent\Model;   class Blog extends Model{}
Posted by: Guest on November-28-2020

Code answers related to "use multiple database in laravel"

Browse Popular Code Answers by Language