laravel_tutorial
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Laravel<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Step 6: Add the following lines in app/Http/routes.php.<br />
app/Http/routes.php<br />
Route::get('edit-records','StudUpdateController@index');<br />
Route::get('edit/{id}','StudUpdateController@show');<br />
Route::post('edit/{id}','StudUpdateController@edit');<br />
Step 7: Visit the following URL to update records in database.<br />
http://localhost:8000/edit-records<br />
Step 8: The output will appear as shown in the following image.<br />
Step 9: Click the edit link on any record and you will be redirected to a page where you<br />
can edit that particular record.<br />
Step 10: The output will appear as shown in the following image.<br />
73