Init
This commit is contained in:
36
database/factories/EpisodeFactory.php
Normal file
36
database/factories/EpisodeFactory.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user