Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamodb.php not recognized #263

Closed
HDYKTY opened this issue Nov 1, 2022 · 1 comment
Closed

dynamodb.php not recognized #263

HDYKTY opened this issue Nov 1, 2022 · 1 comment

Comments

@HDYKTY
Copy link

HDYKTY commented Nov 1, 2022

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
Copy link
Collaborator

zoe-edwards commented Nov 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants