Skip to content

InvalidArgumentException in database seeders only in ^12.27 #56888

@gabrielrbarbosa

Description

@gabrielrbarbosa

Laravel Version

12.27.0

PHP Version

8.5.0

Database Driver & Version

MariaDB 11.4.8

Description

Database\Seeders\BandeiraCartaoTableSeeder ............................................................................................... RUNNING

InvalidArgumentException

Database connection [] not configured.

at vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:221
217▕
218▕ $config = $this->dynamicConnectionConfigurations[$name] ?? Arr::get($connections, $name);
219▕
220▕ if (is_null($config)) {
➜ 221▕ throw new InvalidArgumentException("Database connection [{$name}] not configured.");
222▕ }

Related 1a3c942

Steps To Reproduce

php artisan migrate:fresh --seed
It happens here on a seeder that extends CsvSeeder

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions