Releases: kitar/laravel-dynamodb
Releases · kitar/laravel-dynamodb
v0.5.0
- 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
v0.3.0
v0.2.0
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'
],
],