Skip to content
Advertisement

Resource Controller Concept

I am unable to find the issue. It is showing 404|Not Found

update.blade.php

JavaScript

PostController.php (a resource controller)

JavaScript

route:

JavaScript

please tell me what is the issue in this. one of the advice I got is to change the name of view file i.e update.blade.php to edit.blade.php. I don’t know how does it help

Advertisement

Answer

First you should change edit.blade.php instead of update.blade.php

Second you should not call model like this use App/posts; It is wrong. It must be use AppPost; in your PostController

Third you should change edit() in your controller

JavaScript

You should use $post->id instead of $postin your form action

JavaScript

Then check

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement