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

Database [tenant] not configured #2

Open
meneva opened this issue Feb 6, 2020 · 1 comment
Open

Database [tenant] not configured #2

meneva opened this issue Feb 6, 2020 · 1 comment

Comments

@meneva
Copy link

meneva commented Feb 6, 2020

Hello, while I am trying to type: php artisan migrate --seed
it shows me the following error:

Seeding: ProjectTableSeeder

InvalidArgumentException : Database [tenant] not configured.

at D:\xampp\htdocs\laravel_multitenant\vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php:140
136| // If the configuration doesn't exist, we'll throw an exception and bail.
137| $connections = $this->app['config']['database.connections'];
138|
139| if (is_null($config = Arr::get($connections, $name))) {

140| throw new InvalidArgumentException("Database [{$name}] not configured.");
141| }
142|
143| return $config;
144| }

@miracuthbert
Copy link
Owner

Do not run the seeder once you're done with the setup.
The ProjectTableSeeder will be automatically run whenever a new tenant is created from the UI.

So, there's no initial db seeding required.

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