28 lines
		
	
	
		
			659 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			659 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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(),
 | |
|         ];
 | |
|     }
 | |
| }
 |