mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 11:45:00 +02:00
37 lines
925 B
PHP
37 lines
925 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories\User;
|
|
|
|
use App\Models\Auth\User;
|
|
use App\Models\User\WatchHistory;
|
|
use App\Models\Wiki\Anime\Theme\AnimeThemeEntry;
|
|
use App\Models\Wiki\Video;
|
|
use Illuminate\Database\Eloquent\Factories\Attributes\UseModel;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @method WatchHistory createOne($attributes = [])
|
|
* @method WatchHistory makeOne($attributes = [])
|
|
*
|
|
* @extends Factory<WatchHistory>
|
|
*/
|
|
#[UseModel(WatchHistory::class)]
|
|
class WatchHistoryFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
WatchHistory::ATTRIBUTE_ENTRY => AnimeThemeEntry::factory(),
|
|
WatchHistory::ATTRIBUTE_USER => User::factory(),
|
|
WatchHistory::ATTRIBUTE_VIDEO => Video::factory(),
|
|
];
|
|
}
|
|
}
|