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 trialGareth Redfern
36,217 PointsNested CRUD with Laravel 4 Questions
The method to show a edit form is called __ and the method to save our changes to that data is called __.
I don't understand what this question is asking is it talking about the methods PUT and POST, I have tried that and its not correct?
4 Answers
Chris Shaw
26,676 PointsHi Gareth,
The question is referring to the controller itself not the _method
in the form, for instance if I wanted the index for all my todo lists I would want the index
method.
Hope that helps.
Nawfal Fadhel
1,301 Pointsthanks Gareth, got it !! The question should be
The method to show a edit form is called ___ and the method used to save the changes to the same edit(ed) form is called ___
Nestor Mata Cuthbert
9,088 PointsHi,
I was stock with this question as well, I was trying several things, the problem is that the question is not clear enough.
I recommend updating the question for future students.
Maybe adding something like "What controller method..."
Thanks
Nawfal Fadhel
1,301 PointsI still don't get it
The method to show a edit form is called ? --it is a Get method and the function in the controller is called edit
and the method to save our changes to that data is called? --its a Post method and the function in the controller is called store.
Can anyone clarify or rephrase the question please?
Gareth Redfern
36,217 PointsHi Nawfal, I know it is a bit confusing at first. This may help with what you are asking though. It walks you through the different actions available on the controller.
http://laravel.com/docs/5.1/controllers#restful-resource-controllers
Gareth Redfern
36,217 PointsGareth Redfern
36,217 PointsPerfect, thanks Chris, it must be too early :)
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsNo worries.