Laravel Tutorial for Beginners - Update or Edit Mysql Table Data

preview_player
Показать описание
This is Laravel Video Tutorial on How to Update or Edit Mysql Database table data in Laravel Framework. How to Update Data into Database on Laravel. Laravel edit and update data with eloquent and mysql database. Laravel updating or editing of Mysql table data.

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

Creating default object from empty value

ghaizarbautista
Автор

Your method of teaching is to to to to good.
Thanks for sharing your knowledge

nabeeltahir
Автор

Thank you so much. I solved this error.

fshojlh
Автор

Hello I really enjoyed your tutorials it is worth watching for...

nsis
Автор

Hello, nice tutorial
I wanted to ask why we pass id from route in action attribute when we also pass it from input field with type hidden

majormfr
Автор

how to write the routes of this in web.php

newuser
Автор

What if your customer info form had ten fields you have only two were required fields and the rest were left untouched since there was no change to that information .How would you process those fields?

westfield
Автор

Hello, I really like your tutorial. Can you please make another tutorial of how to update multiple rows at the same with Laravel

cyrillehounvio
Автор

The PATCH method is not supported for this route. Supported methods: GET, HEAD, POST. i get that error plz anybody can tell me how to fix it

zoyashakeel
Автор

Can you also add tutorial on how mo move data table to other table in same database?...

nsis
Автор

i did everything you explained, when i click the edit button it opens my edit page but it is so messed up looks like it did not recognize any bootstrap property that my page has, can anyone please help?

henaazizi
Автор

Hello. i am following your stpes, unfortunately, i am stck at the editing step, after filling in the details, upon clicking "update" i got an error with a response of "Creating default object from empty value"

thDestiny
Автор

Please make a video on Laravel ajax School Management System

nabeeltahir
Автор

can someone help me here please.
when i put
it says

syedm.hharis
Автор

hey sir
this is himanshu
sir can you make a video how to auto generate Barcode in (1d/2d) OR in click button

himanshukanojiya
Автор

So I guess you don’t have to write any sql queries with laravel. Is that true?

westfield
Автор

I get error message like "Creating default object from empty value". could not understand? here i paste code below:


StudentController:


public function update(Request $request, $id)
{
$this->validate($request, [
'first_name' => 'required',
'last_name' => 'required'
]);
$student = Student::find($id);
$student->first_name = $request->get('first_name');
$student->last_name = $request->get('last_name');
dd($student);
$student->save();
return redirect()->route('student.index')->with('success', 'Information successfully updated.');
}


Form:


{{ csrf_field() }}
<input type="hidden" name="_method" value="PATCH">
<div class="form-group">
<input type="text" class="form-control" name="first_name" placeholder="Enter first name">
</div>
<div class="form-group">
<input type="text" class="form-control" name="last_name" placeholder="Enter last name">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary"><i class="fa
</div>

</form>

saddamsagar
Автор

I hate that Laravel always changes without supporting previous version.

kienboy
Автор

Para los que les da error, dejo el código


dangelgeek
Автор

bro just use your real voice. your english is obviously not bad. thanks for the lesson mr robot man.

davik