|
16 | 16 |
|
17 | 17 | namespace Database\Factories;
|
18 | 18 |
|
| 19 | +use App\Models\Group; |
19 | 20 | use App\Models\User;
|
20 | 21 | use Illuminate\Database\Eloquent\Factories\Factory;
|
21 | 22 | use App\Models\UserNotification;
|
@@ -57,14 +58,14 @@ public function definition(): array
|
57 | 58 | 'show_torrent_thank' => $this->faker->boolean(),
|
58 | 59 | 'show_account_follow' => $this->faker->boolean(),
|
59 | 60 | 'show_account_unfollow' => $this->faker->boolean(),
|
60 |
| - 'json_account_groups' => $this->faker->word(), |
61 |
| - 'json_bon_groups' => $this->faker->word(), |
62 |
| - 'json_mention_groups' => $this->faker->word(), |
63 |
| - 'json_request_groups' => $this->faker->word(), |
64 |
| - 'json_torrent_groups' => $this->faker->word(), |
65 |
| - 'json_forum_groups' => $this->faker->word(), |
66 |
| - 'json_following_groups' => $this->faker->word(), |
67 |
| - 'json_subscription_groups' => $this->faker->word(), |
| 61 | + 'json_account_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
| 62 | + 'json_bon_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
| 63 | + 'json_mention_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
| 64 | + 'json_request_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
| 65 | + 'json_torrent_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
| 66 | + 'json_forum_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
| 67 | + 'json_following_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
| 68 | + 'json_subscription_groups' => Group::factory()->count(3)->create()->pluck('id')->toArray(), |
68 | 69 | ];
|
69 | 70 | }
|
70 | 71 | }
|
0 commit comments