Laravel Resource Controller Edit Not Working

Submitted by pakainfo - 3 months ago

There are the Following The simple About laravel edit route not working Full Information With Example and source code.

Laravel Edit Route Not Defined

Route::get('products/{products}/edit', 'RuanganjnsController@edit')->name('products-edit');

//use
{{route('products-edit', ['products' => $data->id])}}

How To Create Laravel Resource Controller With Resource Route?
Resource route
Route::resource('members', 'MemberController');

Route::get('members',['as'=>'members.index','uses'=>'MemberController@index']);
Route::post('members/create',['as'=>'members.store','uses'=>'MemberController@store']);
Route::get('members/edit/{id}',['as'=>'members.edit','uses'=>'MemberController@edit']);
Route::patch('members/{id}',['as'=>'members.update','uses'=>'MemberController@update']);
Route::delete('members/{id}',['as'=>'members.destroy','uses'=>'MemberController@destroy']);
Route::get('members/{id}',['as'=>'members.show','uses'=>'MemberController@show']);

https://www.pakainfo.com/laravel-resource-controller-edit-not-working/