Reputation: 11
I'm new to laravel and I have a problem. I'm trying to delete values form web page (values display form database to webpage) but one error occur that is
http://Symfony\Component\HttpKernel\Exception\NotFoundHttpException
…\bootstrap\compiled.php5726
An error code is throw new NotFoundHttpException();
How to solve it?
Upvotes: 0
Views: 1460
Reputation: 2911
I just had this issue and it was caused by my route calling the delete
method on my controller instead of destroy
.
Upvotes: 0
Reputation: 3931
First of all, check the route you're looking at exists in your routes.php file. You can also do this through the command line using $ php artisan routes
You can narrow it down with say: $ php artisan routes | grep 'route_name'
Then check the route isn't behind a conditional filter. For example if you're using user log-in etc, make sure the route you're after isn't within an authenticated route group.
Upvotes: 1
Reputation: 180014
This is just Laravel's way of saying "404, file not found" - no route matches the URL (and request method) you're accessing (most likely - maybe you've got a GET
route but you're doing a POST
?), or your code is doing App::abort(404)
somewhere (less likely).
Upvotes: 0