Skip to content

Releases: kitar/laravel-dynamodb

v0.5.0

13 Nov 14:11
Compare
Choose a tag to compare
  • Align config options format with Laravel's cache driver #11 (this is backward compatible, thanks @paulhenri-l !)
  • Support table prefix #12 (thanks @paulhenri-l !)
  • Support ScanIndexForward option 524180e
  • Support dynamic table name in the model 2c99077

v0.4.0

22 Mar 12:18
Compare
Choose a tag to compare

v0.3.0

22 Jan 14:13
Compare
Choose a tag to compare
  • Support Laravel 8.x
  • Support PHP 8.0
  • Drop support for PHP 7.2

v0.2.0

25 Mar 03:54
Compare
Choose a tag to compare

Breaking change (Laravel users only)

The purpose of this change is to make AuthUserProvider more testable and support api_token authentication.

App/Providers/AuthServiceProvider.php

Change the registration method.

before

use Kitar\Dynamodb\Model\AuthUserProvider;
...
public function boot()
{
    $this->registerPolicies();

    Auth::provider('dynamodb', function ($app, array $config) {
        return new AuthUserProvider(new $config['model']);
    });
}

after

use Kitar\Dynamodb\Model\AuthUserProvider;
...
public function boot()
{
    $this->registerPolicies();

    Auth::provider('dynamodb', function ($app, array $config) {
        return new AuthUserProvider(
            $app['hash'],
            $config['model'],
            $config['api_token_name'] ?? null,
            $config['api_token_index'] ?? null
        );
    });
}

config/auth.php

Optionally, add api_token_name and api_token_index if you use this package with api_token authentication.

old

'providers' => [
    'users' => [
        'driver' => 'dynamodb',
        'model' => App\User::class
    ],
],

new

'providers' => [
    'users' => [
        'driver' => 'dynamodb',
        'model' => App\User::class,
        'api_token_name' => 'api_token',
        'api_token_index' => 'api_token-index'
    ],
],

v0.1.0

23 Mar 08:10
Compare
Choose a tag to compare
Rewrite document