mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 03:35:02 +02:00
36 lines
914 B
PHP
36 lines
914 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories\User;
|
|
|
|
use App\Models\User\Notification;
|
|
use App\Notifications\ExternalProfileSyncedNotification;
|
|
use Illuminate\Database\Eloquent\Factories\Attributes\UseModel;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* @method Notification createOne($attributes = [])
|
|
* @method Notification makeOne($attributes = [])
|
|
*
|
|
* @extends Factory<Notification>
|
|
*/
|
|
#[UseModel(Notification::class)]
|
|
class NotificationFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
Notification::ATTRIBUTE_ID => Str::uuid()->__toString(),
|
|
Notification::ATTRIBUTE_TYPE => ExternalProfileSyncedNotification::class,
|
|
Notification::ATTRIBUTE_DATA => [],
|
|
];
|
|
}
|
|
}
|