adrema/database/factories/Payment/SubscriptionFactory.php

22 lines
410 B
PHP
Raw Normal View History

<?php
namespace Database\Factories\Payment;
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->name,
'amount' => $this->faker->numberBetween(1000, 50000),
];
}
}