towhid
8 months ago
1454
9
Laravel

How to patch / Delete method work in Resource controller . ?

Posted 8 months ago by towhid

this is my Route

Route::resource('category','CategoryController');

This is my edit form code

<form action="{{url('category')}}" method="post" name="editForm"> 
@method('patch')
@csrf

this is the error when i am going to update

The PATCH method is not supported for this route. Supported methods: GET, HEAD, POST.

Please tell me how to use delete and patch method in resource controller

Please sign in or create an account to participate in this conversation.