Hi,
By default, through this below line, Laravel provide all facilities for insert, update and delete.
Route::resource('users', 'UserController');
So no need to write a below line:
Route::get('users/destroy/{year}', 'UserController@destroy')->name('users.destroy.year');
still if you want to write, then try using "delete" instead of "get". For e.g.
Route::delete('users/destroy/{year}', 'UserController@destroy')->name('users.destroy.year');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community