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:
Favour Olayinka
2024-05-29 11:03:41 +01:00
committed by GitHub
parent 0cb7f86d93
commit 68b610bc15
7 changed files with 99 additions and 1 deletions

View File

@@ -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) {