Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Project Setup Further Into Routing

Further Into Routing Quiz Part 2

Okay, what's wrong with this quiz? I've taken it on both my iPad and MacBook Pro and the answers are inconsistent.

1) In the following: Route::get('/hello/{world?}', ... the parameter world is NOT optional.

I thought you added the '?' to make it optional and you would then declare the variable when passing it to a function, so I said false because it IS optional. That was wrong. Then I said true, that was wrong. Then I said true, it was right. But I know it's false, so I selected false and it was right!

2) Which of the following methods do we use to create a new View?

The correct answer should be View::make();. I selected that and it was wrong. I retook the quiz, selected View::make() and it was marked correct. I've retaken the quiz a few times to see if there is continued inconsistency and there isn't.

I am concerned about completing a course with quizzes that reinforce incorrect information.

1 Answer

Item 1) The question is: In the following: ... Route::get('/hello/{world?}', ... the parameter world is NOT optional.

The answer would be false because the ? mark means it is optional. Which I select false and was prompted with correct answer.

Item 2) I selected View:male(); and was prompted with correct answer.

Can you try it again to verify these items are still an issue for you? Link to Retry