Nevermind. I found it. After I read my post I saw, that Features::billingAddressCollection() accepts options. So the solution is simple:
Just add Features::billingAddressCollection(['required' => true]) to the features array.
Features::collectsBillingAddress() not working?
Hi there. We're using Laravel Spark (Stripe) for one of our projects and wanted to go live. But the billing address collection seems lacking support for required fields. In the config/spark.php under features the Features::collectsBillingAddress() is missing completely and if I add it, it's completely ignored.
But if I look at the NewSubscriptionController.php in the vendor folder that is exactly the feature that Spark is checking for to make the fields required.
Also the FrontendState.php references it with the following line
'billingAddressRequired' => Features::collectsBillingAddress() && (bool) Features::option('billing-address-collection', 'required'),
I tried to just write required in there and it instantly worked, so it seems I have to define this feature at another point I'm not aware of.
The documentation seems to be somewhat incomplete at this point. Therefore, I would appreciate any help.
Please or to participate in this conversation.