quankim / laravel-dynamodb-migrations
该软件包最新版本(2.1)没有可用的许可证信息。
为 DynamoDB 创建迁移(版本控制)
2.1
2017-07-10 06:44 UTC
Requires
- aws/aws-sdk-php-laravel: ~3.0
This package is not auto-updated.
Last update: 2024-09-14 19:53:16 UTC
README
安装
- Composer install
composer require quankim/laravel-dynamodb-migrations
- 安装服务提供者
// config/app.php 'providers' => [ ... QuanKim\LaravelDynamoDBMigrations\DynamoDBMigrationServiceProvider::class ... ];
- 配置 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, ] ];