baopham / laravel-dynamodb

Eloquent syntax for DynamoDB
https://packagist.org/packages/baopham/dynamodb
MIT License
484 stars 128 forks source link

dynamodb.php not recognized #263

Closed HDYKTY closed 1 year ago

HDYKTY commented 1 year ago

i published dynamodb.php to config folder, correctly changed the config/aws.php and Model/***.php and migration files to generate dynamodb (according to you previews issues).

But when i run "php artisan migrate",it shows

ErrorException

  Undefined array key "database"

  at vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:76
     72▕     {
     73▕         $pdo = $this->createPdoResolver($config);
     74▕
     75▕         return $this->createConnection(
  ➜  76▕             $config['driver'], $pdo, $config['database'], $config['prefix'], $config
     77▕         );
     78▕     }
     79▕
     80▕     /**

it seems laravel still use my old file "config/database.php" as the default db config file, not "config/dynamodb.php"??????

zoe-edwards commented 1 year ago

You can’t use migrations with DynamoDB. Have a read through #90