Skip to content

Commit

Permalink
[10.x] Add Factory::getNamespace() (#47463)
Browse files Browse the repository at this point in the history
* Add Factory::getNamespace()

* Added test for Factory::getNamespace()

* Style fixes

* Update Factory.php

* Update DatabaseEloquentFactoryTest.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
tylernathanreed and taylorotwell authored Jun 16, 2023
1 parent ea5172e commit 33afb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Factories/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ abstract class Factory
*
* @var string
*/
protected static $namespace = 'Database\\Factories\\';
public static $namespace = 'Database\\Factories\\';

/**
* The default model name resolver.
Expand Down

0 comments on commit 33afb59

Please sign in to comment.