update function laravel 7

Solutions on MaxInterview for update function laravel 7 by the best coders in the world

showing results for - "update function laravel 7"
Jimmy
02 Jun 2017
1## View 
2Route::get('/subjects', 'SubjectsController@index')->name('subjects');
3
4## Create
5Route::get('/subjects/create', 'SubjectsController@create')->name('subjects.create');
6Route::post('/subjects/store', 'SubjectsController@store')->name('subjects.store');
7
8## Update
9Route::get('/subjects/store/{id}', 'SubjectsController@edit')->name('subjects.edit');
10Route::post('/subjects/update/{id}', 'SubjectsController@update')->name('subjects.update');
11
12## Delete
13Route::get('/subjects/delete/{id}', 'SubjectsController@destroy')->name('subjects.delete');