Files
einundzwanzig-portal/database/factories/EpisodeFactory.php
Benjamin Takats 660c7da394 podcasts added
2022-12-06 18:17:05 +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' => '{}',
];
}
}