File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,6 @@ class HasFactoryWithStatesStub
1010{
1111 use HasFactory;
1212
13- protected static function toFactoryInstance (array $ attributes ): Data
14- {
15- return new Data ($ attributes );
16- }
17-
18- protected static function getFactoryDefinition (Generator $ faker ): array
19- {
20- return [
21- 'name ' => $ faker ->name (),
22- 'email ' => $ faker ->email (),
23- 'role ' => 'user ' ,
24- 'status ' => 'active ' ,
25- ];
26- }
27-
2813 /**
2914 * Admin state method.
3015 */
@@ -57,4 +42,19 @@ public static function getPremiumState(): array
5742 'subscription ' => 'premium ' ,
5843 ];
5944 }
45+
46+ protected static function toFactoryInstance (array $ attributes ): Data
47+ {
48+ return new Data ($ attributes );
49+ }
50+
51+ protected static function getFactoryDefinition (Generator $ faker ): array
52+ {
53+ return [
54+ 'name ' => $ faker ->name (),
55+ 'email ' => $ faker ->email (),
56+ 'role ' => 'user ' ,
57+ 'status ' => 'active ' ,
58+ ];
59+ }
6060}
You can’t perform that action at this time.
0 commit comments