Jul 6, 2017
0
Level 2
Blocking Routes with Subscription Middleware
Hi All,
Here's my situation. I've got two plans. Basic and Premium. You can pay monthly or yearly for either plan. I'd like to use Spark's subscription middleware to block certain routes based on which plan the user is on. Something like this:
Route::group(['middleware' => 'subscribed:premium'], function () {
Where "premium" would include both the monthly and yearly premium payment plans. I feel like I'm missing something as this should be super simple, but I can't find where to change the subscription names. Any help would be greatly appreciated!
Please or to participate in this conversation.