Files
einundzwanzig-portal/database/factories/PodcastFactory.php
Benjamin Takats 660c7da394 podcasts added
2022-12-06 18:17:05 +01:00

32 lines
605 B
PHP

<?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' => '{}',
];
}
}