How to get the 'id' of any paid plan anywhere in a class?
How to get the 'id' of any paid plan anywhere in a class?
' In Spark::plan('Plan-A', 'provider-id-1') function, the second parameter refers to the id of a plan ?
As i need to pass the id of a plan to my controller.
I don't think I know exactly what your use case is, but there are a few methods on the ManagesAvailablePlans trait on the Laravel\Spark\Spark class that you might be able to use.