You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Include connection in seeder when using --database option
When using --database with a non-default connection, the generated
seeder now uses DB::connection('name')->table() instead of DB::table()
to ensure the seeder targets the correct database.
Based on PR #212 by @Endy-c.
Optional parameter which specifies the DB connection name.
107
+
Optional parameter which specifies the DB connection name. When using a non-default connection, the generated seeder will include the connection specification (e.g., `\DB::connection('mysql2')->table(...)`) to ensure the seeder targets the correct database.
0 commit comments