2021-07-15 21:14:25 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories\Payment;
|
|
|
|
|
2022-02-12 14:41:46 +01:00
|
|
|
use App\Fee;
|
2021-07-15 21:14:25 +02:00
|
|
|
use App\Payment\Subscription;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class SubscriptionFactory extends Factory
|
|
|
|
{
|
|
|
|
protected $model = Subscription::class;
|
|
|
|
|
|
|
|
public function definition(): array
|
|
|
|
{
|
|
|
|
return [
|
2022-02-12 14:41:46 +01:00
|
|
|
'name' => $this->faker->word,
|
2021-07-15 21:14:25 +02:00
|
|
|
'amount' => $this->faker->numberBetween(1000, 50000),
|
2022-02-12 15:33:16 +01:00
|
|
|
'fee_id' => Fee::factory()->createOne()->id,
|
2021-07-15 21:14:25 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|