nimuli/database/factories/PlanFactory.php

25 lines
560 B
PHP

<?php
namespace Database\Factories;
use App\Domains\Subscription\Models\Plan;
use Illuminate\Database\Eloquent\Factories\Factory;
class PlanFactory extends Factory
{
protected $model = Plan::class;
public function definition(): array
{
return [
'name' => fake()->unique()->word(),
'monthly_price_cents' => 0,
'workspace_limit' => 1,
'member_limit' => 1,
'custom_domain_limit' => 0,
'link_limit' => 50,
'click_limit_monthly' => 1000,
];
}
}