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 Nested CRUD with Laravel 4 Nested Edits & Updates Nested Edits with Laravel 4

Gareth Redfern
Gareth Redfern
36,217 Points

Nested 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
Chris Shaw
26,676 Points

Hi 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.

Gareth Redfern
Gareth Redfern
36,217 Points

Perfect, thanks Chris, it must be too early :)

thanks 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
Nestor Mata Cuthbert
9,088 Points

Hi,

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

I 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
Gareth Redfern
36,217 Points

Hi 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