Skip to content

alustau/laravel-aurora-connector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Aurora Connector 📮

This library creates a new database driver for Laravel dedicated to connect to Aurora. It gives us an opportunity to properly configure the READ COMMITTED isolation as well as load the database password from AWS Secrets.

Installation

composer require customergauge/aurora

Usage

In the database.php, we define a connection using the aurora driver

        'tenant' => [
            'driver' => 'aurora',
            'host' => env('DB_HOST'),
            'port' => env('DB_PORT),
            'database' => env('DB_DATABASE'),
            'username' => env('DB_USERNAME'),
            'charset' => 'utf8mb4',
            'collation' => 'utf8mb4_unicode_ci',
            'prefix' => '',
            'prefix_indexes' => true,
            'strict' => false,
            'engine' => null,
            'options' => [],
            'aurora' => [
                'secret' => env('AWS_SECRET_NAME'),
            ],
        ],

The new 'aurora' key will allow the confiugration for the AWS Secret manager.

Extension

@TODO

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%