Use existing Laravel Middleware for certain Statamic Routes

I have a few Statamic pages that should be checked by a middleware group which is set up in my web.php for regular Laravel routes.

Route::group(['middleware' => ['auth', 'verified']], function (){ ...

But since I am not creating those Statamic routes myself, I don't know how to make sure they check against a middleware. Ideally, I would create a toggle in my Blueprint for pages where I could define if this route should be checked or not. But I'd actually just want to figure out how to do this generally without defining my Statamic routes manually.

Any tips or ideas here?

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower