Skip to content

Commit 3f78484

Browse files
committed
wip
1 parent a959c6b commit 3f78484

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/Providers/AppServiceProvider.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
use Illuminate\Support\Facades\Event;
1010
use Illuminate\Support\ServiceProvider;
1111
use Illuminate\Validation\Rules\Password;
12+
use Laravel\Paddle\Cashier;
1213
use Laravel\Paddle\Events\SubscriptionCreated;
14+
use Laravel\Paddle\Subscription;
15+
use Laravel\Paddle\Transaction;
1316

1417
class AppServiceProvider extends ServiceProvider
1518
{
@@ -27,7 +30,10 @@ public function register(): void
2730
public function boot(): void
2831
{
2932
$this->configureDefaults();
33+
Cashier::useSubscriptionModel(Subscription::class);
34+
Cashier::useTransactionModel(Transaction::class);
3035
Event::listen(SubscriptionCreated::class, SubscriptionActivatedListener::class);
36+
3137
}
3238

3339
/**
@@ -41,7 +47,7 @@ protected function configureDefaults(): void
4147
app()->isProduction(),
4248
);
4349

44-
Password::defaults(fn (): ?Password => app()->isProduction()
50+
Password::defaults(fn(): ?Password => app()->isProduction()
4551
? Password::min(12)
4652
->mixedCase()
4753
->letters()

0 commit comments

Comments
 (0)