mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-03 08:50:22 -05:00
27 lines
627 B
PHP
27 lines
627 B
PHP
<?php
|
|
|
|
/* @var \Illuminate\Database\Eloquent\Factory $factory */
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Forum;
|
|
use App\Models\Subscription;
|
|
use App\Models\Topic;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class SubscriptionFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'user_id' => fn () => User::factory()->create()->id,
|
|
'forum_id' => fn () => Forum::factory()->create()->id,
|
|
'topic_id' => fn () => Topic::factory()->create()->id,
|
|
];
|
|
}
|
|
}
|