What did I do wrong?

//routes/web.php
Route::match(['get', 'post', 'delete'], '/edit/{page}',['uses' => 'PagesEditController@execute', 'as' => 'pagesEdit'] );


//blade.php
{!! Form::open([url(route('pagesEdit', ['page' => $page->id])), 'class' => 'form-horizontal', 'method' => 'POST']) !!}
{{ method_field('DELETE') }}
{!! Form::button('Delete', ['class' => 'btn btn-danger', 'type' => 'submit']) !!}
{!! Form::close() !!}

//Controller.php
 if ($request->isMethod('delete')){

$page->delete();

 return redirect('admin')->with('status', 'Page Deleted');
 }


When deleting a page pojavljaetsja oshybka the following:

5a70fcce5b494847185878.png
June 8th 19 at 17:22
1 answer
June 8th 19 at 17:24
and what the router says ?

comes to the controller ?
I do not think that the problem with rotary. the method in this post the router works fine - danyka commented on June 8th 19 at 17:27
Yes comes to the controller. - danyka commented on June 8th 19 at 17:30
comes, you say? well, then I guess you have a defective level some caught. - kaya.Kerluke79 commented on June 8th 19 at 17:33
In codes I correctly wrote? - danyka commented on June 8th 19 at 17:36
, the fact that you brought I don't see errors. - kaya.Kerluke79 commented on June 8th 19 at 17:39
OK. Thank you for your attention to my question. - danyka commented on June 8th 19 at 17:42

Find more questions by tags Laravel