remove branding for subscribed users (#424)
* removebrandingfor subscribed users * backend changes, test * fix test name * fix disable branding * Fix linting --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models\Billing;
|
||||
|
||||
use App\Events\SubscriptionCreated;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Laravel\Cashier\Subscription as CashierSubscription;
|
||||
|
||||
@@ -9,6 +10,10 @@ class Subscription extends CashierSubscription
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $dispatchesEvents = [
|
||||
'created' => SubscriptionCreated::class,
|
||||
];
|
||||
|
||||
public static function booted(): void
|
||||
{
|
||||
static::saved(function (Subscription $sub) {
|
||||
|
||||
Reference in New Issue
Block a user