Component evidence

Events/SubscriptionReactivated.php

tashil · src/Events/SubscriptionReactivated.php · php · MIT
payments

Fires when a subscription is reactivated by a successful payment recovery.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/Foysal50x/tashil | License: MIT | Copyright 2026 Foysal Ahmed
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace Foysal50x\Tashil\Events;

use Foysal50x\Tashil\Models\Invoice;
use Foysal50x\Tashil\Models\Subscription;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

/**
 * A lapsed subscription (past_due / suspended / expired) was brought back to
 * `active` — typically because the host collected a previously failed
 * payment. `$invoice` is the invoice whose payment triggered recovery, when
 * the recovery came through the invoice-paid path.
 */
class SubscriptionReactivated
{
    use Dispatchable, SerializesModels;

    public function __construct(
        public S

... (truncated -- full source via MCP)