12.02.2018 Views

laravel_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!