feat: initial laravel install, models, seeders
This commit is contained in:
27
site/database/factories/PodcastFactory.php
Normal file
27
site/database/factories/PodcastFactory.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class PodcastFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => fake()->name(),
|
||||
'description' => fake()->paragraphs(rand(1,3), true),
|
||||
'website' => 'https://' . fake()->domainName(),
|
||||
'feed' => fake()->url(),
|
||||
'slug' => fake()->slug(),
|
||||
'published' => fake()->boolean(),
|
||||
'added_at' => fake()->dateTimeThisDecade(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user