Files
einundzwanzig-portal/database/factories/EpisodeFactory.php
Benjamin Takats 85b2856bcd podcasts added
2022-12-12 19:17:09 +01:00

32 lines
585 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Episode;
use App\Models\Podcast;
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(): array
{
return [
'podcast_id' => Podcast::factory(),
'data' => '{}',
];
}
}