32 lines
668 B
PHP
32 lines
668 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use App\Models\NotificationPreference;
|
||
|
|
use App\Models\User;
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends Factory<NotificationPreference>
|
||
|
|
*/
|
||
|
|
class NotificationPreferenceFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'user_id' => User::factory(),
|
||
|
|
'post_published' => true,
|
||
|
|
'post_failed' => true,
|
||
|
|
'account_disconnected' => true,
|
||
|
|
'mentioned_in_comment' => true,
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|