LaravelPackages.net
Acme Inc.
Toggle sidebar
quankim/laravel-dynamodb-migrations

Create Migrations (version control) for DynamoDB

23.573
7
2.1
About quankim/laravel-dynamodb-migrations

quankim/laravel-dynamodb-migrations is a Laravel package for create migrations (version control) for dynamodb. It currently has 7 GitHub stars and 23.573 downloads on Packagist (latest version 2.1). Install it with composer require quankim/laravel-dynamodb-migrations. Discover more Laravel packages by quankim or browse all Laravel packages to compare alternatives.

Last updated

Laravel Package: Migrations for DynamoDB

Install

  • Composer install
composer require quankim/laravel-dynamodb-migrations
  • Install service provider
// config/app.php
    'providers' => [
        ...
        QuanKim\LaravelDynamoDBMigrations\DynamoDBMigrationServiceProvider::class
        ...
    ];
  • Config DynamoDB
// config/aws.php
    use Aws\Laravel\AwsServiceProvider;
    
    return [
    
        /*
        |--------------------------------------------------------------------------
        | AWS SDK Configuration
        |--------------------------------------------------------------------------
        |
        | The configuration options set in this file will be passed directly to the
        | `Aws\Sdk` object, from which all client objects are created. The minimum
        | required options are declared here, but the full set of possible options
        | are documented at:
        | http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
        |
        */
        'credentials' => [
            'key'    => env('AWS_ACCESS_KEY_ID', ''),
            'secret' => env('AWS_SECRET_ACCESS_KEY', ''),
        ],
        'region' => env('AWS_REGION', 'us-east-1'),
        'version' => 'latest',
        'ua_append' => [
            'L5MOD/' . AwsServiceProvider::VERSION,
        ],
        'endpoint' => env('AWS_ENDPOINT', ''),
        'http' => [
            'verify' => false,
        ]
    ];
Comments