zaghyr / eloquent-dynamodb
DynamoDb with Eloquent and Migrations
Installs: 1 222
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
Requires
- aws/aws-sdk-php-laravel: ~3.0
- baopham/dynamodb: ~4.2 || ^5.0
This package is auto-updated.
Last update: 2025-02-19 23:20:34 UTC
README
Install
- Composer install
composer require zaghyr/eloquent-dynamodb
- Install service provider
// config/app.php 'providers' => [ ... Zaghyr\EloquentDynamoDbServiceProvider::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, ], 'migrations-table' => env('DYNAMODB_MIGRATIONS_TABLE', 'migrations') ];