P
P
Protein_R2019-01-20 19:11:54
Laravel
Protein_R, 2019-01-20 19:11:54

Why is the Laravel entry not being deleted?

From the database records are displayed on the page. Editing works, deleting works... Except for deleting one entry. This post is editable. The error is only when popping the delete.

Page
5c4499f7475d7676625322.png
The mistake itself
5c449add479f9585770329.png

The output of the form for deletion is as follows (used by Laravel Collective):
The form
5c44993255372777520503.png
router
5c4499bb0ba51818709203.png
The destroy method, to which the execution does not reach
5c449cf4d9dd8868275179.png

Before that, I made several pages, they didn’t have this. Does not delete specifically one record.
What might cause such an error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2019-01-20
@iNickolay

Apparently, they forgot to add the Delete method to the form
https://laravel.com/docs/5.7/routing#form-method-s...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question