You can use route groups for that right?
// Other routes here
Route::group(['middleware' => 'subscribed'], function () {
// All routes here where you need to be subscribed.
});
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, i am wondering how i would block all of the team routes for users who are not subscribed. I assume i could use
Route::get('/paid', ['middleware' => 'subscribed', function () {
//
}]);
to some extend but it there a way to just grab all of the routes that have to do with teams and block them until a user subscribes to a plan?
Thanks in advance!!
Please or to participate in this conversation.