← All tasks
What you'll do
Find the line calling an Eloquent Collection method as if it were a plain PHP array function.
Scenario
Calling array_map('strtoupper', $posts->pluck('title')) throws a TypeError.
Ready to try it?
Create a free account and subscribe to take "Fix a Collection vs Array Method Mismatch". Earn 120 XP and track your internship progress.
Already have an account? Sign in