Это видео недоступно.
Сожалеем об этом.
Laravel 8 CRUD 3: Edit and update data into database in laravel 8
HTML-код
- Опубликовано: 13 май 2021
- In this video, you will learn how to edit and update existing records/data in database.
If the video helps you, hit the like button and subscribe to the channel. If you have any doubts or suggestions, drop them in the comments below and i will answer them.
Thanks for watching
Follow me on instagram : / sharma_coder
thanks keep updating sir because others use far older version of laravel, most of the new version cannot even work with other tutorials
Great video. It helped me out. I started a page already. And wanted extactly this. Also I had the exact same idea for updating the fields. Using the fields that I also use to create something. I didn't exactly know how to get the update function @ the controller working. This video resolved that. $id = $request->id (from Request $request) is how I extracted the ID.
A bit off: Its really fun, once getting familair with dd($request) for example. With that you could test and extract all kinda values.
hello sir at 10:37 when you click at submit your data is updated but its showing me 404 not found i dont know why sir can you help me
Great video! But how do I change only those fields that has been changed and keep the value of those fields that aren’t changed?
E.g, if I have 4 fields, all 4 fields has a value, but when I submit I only change 2 of the fields. But as I submit the form, the 2 that wasn’t changed gets null, how do I keep it from getting null on submission and only update the values of the fields that was changed?
To me it also works without using the put method. Maybe that helps. I use post on the route, and do not add @method put in the form field.
Sir, I got an error ,error:- unknown column
Sql state
very nice
I have a probleme the update request a parametre how do i FIX it
hello sir at 10:37 when you click at submit your data is updated but its showing me 404 not found i dont know why sir
make a route, in the "web.php" file
Will do it anyway but have to edit using the model???????
No, you can also update data using DB class
thanks sir it worked :D
You're welcome
Thx it work ...but my with function do not work ..what is the problem you thik😅
Just check if you have made some typing mistake in the with() bcz there is nothing complicated in that to get an error.
Same here
Did all the steps but still data is not saving in database
How can i back to principal page when i click on update
After you finish writing your update code, return redirect to the principal page.
Sir css not working
It shows put method i snot aupported for this route
How to solve this?
Have you given @method ('PUT') inside the form ?below the csrf token
@@SharmaCoder yes i have given even after shows that error
What method did you register the route in the web.php? Route::put() ? Or Route::post()?
@@SharmaCoder route put
Inside the form open tag.. have you given method="POST" ?
Source code can you upload
www.fundaofwebit.com/laravel-8/how-to-edit-update-data-in-laravel
Its not laravel 8
ruclips.net/video/dXlgWcLEg8Q/видео.html
I have shown the installation in this video.
does not work.