add database with laravel code example Example: db name laravel DB::connection()->getDatabaseName() //laravel