← All tasks
🔍
Programming Intermediate

Fix a Route Parameter Name Mismatch

⏱ 5 min ⭐ 120 XP 🔁 3 attempts allowed

What you'll do

Find the line where the route parameter name doesn't match the controller's type-hinted variable, breaking implicit binding.

Scenario

Route::get('/posts/{id}', [PostController::class, 'show']) returns null instead of the Post model.

Ready to try it?

Create a free account and try "Fix a Route Parameter Name Mismatch" free for 7 days, no card required. Earn 120 XP and track your internship progress.

Already have an account? Sign in