35 lines
679 B
PHP
35 lines
679 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Episode;
|
|
use App\Models\Podcast;
|
|
use App\Models\Artwork;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
class EpisodeFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Episode::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'podcast_id' => Podcast::factory(),
|
|
'artwork_id' => Artwork::factory(),
|
|
'published' => fake()->boolean(),
|
|
'title' => fake()->name()
|
|
];
|
|
}
|
|
}
|