I\'m quite new to laravel and I\'m trying to update a record from form\'s input. However I see that to update the record, first you need to fetch the record from database. Isn\
The common way is to load the row to update:
$post = Post::find($id);
I your case
$post = Post::find(3); $post->title = "Updated title"; $post->save();
But in one step (just update) you can do this:
$affectedRows = Post::where("id", 3)->update(["title" => "Updated title"]);