Laravel 8 tutorial - Update Data in Database

preview_player
Показать описание
In this laravel 8 video tutorial, we learn how to update data and record in the database in a simple way. This video is made by anil Sidhu in the English language. This tutorial will also work in laravel 9 version

steps of video
Make HTML form in view
Make Model
Make Controller
Make routes
delete record in DB
check record is deleted on not
Interview Question over Model
Laravel 9
Laravel tutorial for beginners

Рекомендации по теме
Комментарии
Автор

Please support me by subscribe, like and comment :) thank you

codestepbystep
Автор

I've learnt a lot from you. Thanks Anil

dianaeftaiha
Автор

Very good explination sir i have learn so many things in this video very thanks sir ...

tellavenky
Автор

I am learning alot from you, thank you

KingGestur
Автор

Anil thank you so much, appreciate it. This tutorial helped me a lot

mohammadashrafomid
Автор

Solo este video me sirvio señor usted es un crack muchas gracias, lo hamo.

OkaeriSuits
Автор

9:59 was life saver for me, it took 4 hours for me to find the solution

grdxist
Автор

Thank you this method help me solve my problem.

JacquesvanWyk
Автор

You could do that with a JavaScript prompt, it would be shorter and better to edit the field in the same page

abdullahalrawi
Автор

getting error can not use post method even if i mention post in both form method and route method

saurabhgaonkar
Автор

how can I make the form editable instead of going onto another form to edit it??

lucylocket
Автор

Shows undefined index tno error when switch on view showdata while in delete it is showing perfectly. Please sove my problem

brajeshyadav
Автор

Good Day! sir you have a video instead of update ill add another data in another table in database?

chrisanthonycanal
Автор

Why we are not using Route::delete and Route::PUT for deleting and updating data? can you please explain?

shihabjamil
Автор

Why when i update, the data move to the last row? and when i delete the data, the id not automatically replace with the one that i've deleted? Do i make mistake anywhere?

nurulsyakira
Автор

Do you think foreach Loop will be created in edit.blade.php??)

JDFromAnotherPlanet
Автор

hey, i am trying to update data same as you . but while i am clicking on update it's not updating and redirecting to the page. everything is working fine data is coming from also it is connected to the modal, but only not updating.
function saveeditpagedata(Request $req)
{
$data = Member::find($req->mem_id);
$data->Name=$req->name;
$data->Email=$req->email;

$data->save();
return redirect('lists');

}
can you please solve the issue why its not updating the data.

PriyankaKumari-bpbd
Автор

I am getting error of trying to access array offset on value of type null plzz sir reply

RMCMC-YugantMahajan
Автор

Hi sir, how can i edit form without showing id no in browser...

Sanjay-gfwd
Автор

Ok, so the corection for this code is in the routing. In web.php use in post code edit/edit, because for some reason the redirect won't work.
Route::post('edit/edit', [MemberController::class, 'update']);

MiHaIpIn