Test-Laravel-Routes
Test-Laravel-Routes copied to clipboard
Task 12 doesn't pass (because of wrong Controller)
This is for the ones (like I was) that finished all tasks but the final one (12). It took me about 40mins to figure this out.
Solution: watch carefully the app\Http\Controllers folder. There is a special one called Api.
I'm still not being able to figure it out mate :)
@AnsarMahir what @ToniMoldovan has said is correct, when defining the route you need to import the correct TaskController because there is two of them. You need the one inside the App\Http\Controllers\Api\V1 folder.
and remember : By default, the api.php route file is already prefixed with api, so you don't need to manually add the prefix for "api".