Support the ongoing development of →
Requests Input Forms
Last updated 2 years ago.


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');

Last updated 7 years ago.

Sign in to participate in this thread!


Your banner here too?

moschel26 moschel26 Joined 21 Dec 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.