Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bibiseb's avatar

How to translate plan features

As suggested by the documentation [https://spark.laravel.com/docs/5.0/billing#configuring-billing-plans] I setup my plans features within the booted method of the SparkServiceProvider.

But this way the features cannot be translated because the session is not started.

Do you know a workaround ? Would it be dangerous to declare all my plans within a middleware ?

0 likes
1 reply

Please or to participate in this conversation.