22 lines
		
	
	
		
			478 B
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			478 B
		
	
	
	
		
			PHP
		
	
	
	
| <?php
 | |
| 
 | |
| namespace Database\Factories\Payment;
 | |
| 
 | |
| use App\Fee;
 | |
| use App\Payment\Subscription;
 | |
| use Illuminate\Database\Eloquent\Factories\Factory;
 | |
| 
 | |
| class SubscriptionFactory extends Factory
 | |
| {
 | |
|     protected $model = Subscription::class;
 | |
| 
 | |
|     public function definition(): array
 | |
|     {
 | |
|         return [
 | |
|             'name' => $this->faker->word,
 | |
|             'amount' => $this->faker->numberBetween(1000, 50000),
 | |
|             'fee_id' => Fee::factory()->createOne()->id,
 | |
|         ];
 | |
|     }
 | |
| }
 |