We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc19508 commit 7505152Copy full SHA for 7505152
src/Illuminate/Database/Eloquent/Factories/Factory.php
@@ -842,10 +842,10 @@ public function getConnectionName()
842
/**
843
* Specify the database connection that should be used to generate models.
844
*
845
- * @param \UnitEnum|string $connection
+ * @param \UnitEnum|string|null $connection
846
* @return static
847
*/
848
- public function connection(UnitEnum|string $connection)
+ public function connection(UnitEnum|string|null $connection)
849
{
850
return $this->newInstance(['connection' => $connection]);
851
}
0 commit comments