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

InvalidArgumentException with message 'Database connection [corcel] not configured.' #606

Open
mpapado3 opened this issue Feb 18, 2022 · 0 comments

Comments

@mpapado3
Copy link

  • Corcel Version: 5.0.0
  • Framework Name & Version: Laravel 8
  • PHP Version: 8
  • Database Driver & Version: Mysql

Description:

I have made a fresh laravel installation and installed corcel.
Published the config and added the wordpress database details on the database config file. But when I try to get all the posts from the wordpress database using Tinker I get error:
"InvalidArgumentException with message 'Database connection [corcel] not configured.'"

I have already cleared cache and config with php artisan command.

database.php
'wordpress' => [ // for WordPress database (used by Corcel) 'driver' => 'mysql', 'host' => env('WP_HOST', '127.0.0.1'), 'database' => env('WP_DATABASE', 'forge'), 'username' => env('WP_USERNAME', 'forge'), 'password' => env('WP_PASSWORD', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => env('WP_PREFIX', ''), 'strict' => false, 'engine' => null, ],

corcel.php
'connection' => 'wordpress',

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

1 participant