← All tasks
💻
Programming Intermediate

Generate Custom Middleware

⏱ 3 min ⭐ 80 XP 🔁 3 attempts allowed

What you'll do

Type the command to generate a new middleware class called CheckSubscriptionActive.

Scenario

You need to block access to premium routes for users without an active subscription.

Ready to try it?

Create a free account and subscribe to take "Generate Custom Middleware". Earn 80 XP and track your internship progress.

Already have an account? Sign in