From 70fdc73b2d2389d0365b3a6da84724739e8354c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 28 Feb 2024 17:55:37 +0100 Subject: [PATCH] Add dependencies and update steps in Purchase.php --- app/Livewire/BillingPortal/Purchase.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Livewire/BillingPortal/Purchase.php b/app/Livewire/BillingPortal/Purchase.php index 13cd5d6410b4..2e59c9c0ee41 100644 --- a/app/Livewire/BillingPortal/Purchase.php +++ b/app/Livewire/BillingPortal/Purchase.php @@ -13,6 +13,7 @@ namespace App\Livewire\BillingPortal; use App\Libraries\MultiDB; +use App\Livewire\BillingPortal\Authentication\RegisterOrLogin; use App\Livewire\BillingPortal\Cart\Cart; use App\Livewire\BillingPortal\Payments\Methods; use App\Models\Subscription; @@ -35,12 +36,21 @@ class Purchase extends Component // + public static array $dependencies = [ + Login::class => [], + RegisterOrLogin::class => [], + Register::class => [], + Cart::class => [], + Methods::class => [Login::class, RegisterOrLogin::class, Register::class], + RFF::class => [Login::class, RegisterOrLogin::class, Register::class], + ]; + public int $step = 0; - public array $steps = [ + public static array $steps = [ Setup::class, + RegisterOrLogin::class, Cart::class, - Authentication::class, Methods::class, RFF::class, Submit::class,