podcasts added

This commit is contained in:
Benjamin Takats
2022-12-06 18:17:05 +01:00
parent a520c26dba
commit 85b2856bcd
30 changed files with 910 additions and 24 deletions

View File

@@ -0,0 +1,31 @@
<?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' => '{}',
];
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Podcast;
class PodcastFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Podcast::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition(): array
{
return [
'title' => $this->faker->sentence(4),
'link' => $this->faker->word,
'data' => '{}',
];
}
}