Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

747 B
Raw Blame
<?php

namespace Database\Factories;

use App\Models\Subscription;
use App\Models\Team;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Subscription>
 */
class SubscriptionFactory extends Factory
{
    protected $model = Subscription::class;

    public function definition(): array
    {
        return [
            'team_id' => Team::factory(),
            'stripe_customer_id' => 'cus_'.$this->faker->bothify('??????????'),
            'stripe_subscription_id' => null,
            'stripe_invoice_paid' => false,
            'stripe_cancel_at_period_end' => false,
            'stripe_plan_id' => null,
            'stripe_past_due' => false,
            'stripe_trial_already_ended' => false,
        ];
    }
}