Skip to content

Commit 3b7311b

Browse files
committed
Update HasFactoryWithStatesStub.php
1 parent 4bb4e3b commit 3b7311b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tests/Fixtures/HasFactoryWithStatesStub.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)