37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Studios;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Episode>
|
|
*/
|
|
class EpisodeFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'title' => $this->faker->title(),
|
|
'title_search' => $this->faker->title(),
|
|
'title_jpn' => $this->faker->title(),
|
|
'slug' => $this->faker->slug,
|
|
'episode' => $this->faker->randomDigit(),
|
|
'description' => $this->faker->text(),
|
|
'url' => $this->faker->url(),
|
|
'cover_url' => $this->faker->url(),
|
|
'view_count' => $this->faker->randomNumber(),
|
|
'interpolated' => $this->faker->boolean(),
|
|
'interpolated_uhd' => $this->faker->boolean(),
|
|
'release_date' => $this->faker->date(),
|
|
'is_dvd_aspect' => $this->faker->boolean(),
|
|
];
|
|
}
|
|
}
|