bootstrap/app.php
file, then Spark’s subscription verification middleware alias is automatically registered for you internally. However, if you are using an application structure that does not utilize the bootstrap/app.php
file for middleware configuration, you may need to manually register the subscribed
middleware alias in your application’s App\Http\Kernel
class:
subscribed
middleware to any of your application’s route definitions:
Of course, you may always manually inspect a billable model’s subscription status using the methods provided by Laravel Cashier, which can be especially useful for verifying that a user is subscribed to a particular plan.