skip to Main Content

How do I update data in the database in laravel?

This is the code I have written so far: Here is my Controller that contains the edit and update function: public function edit($id){ $post = Posts::find($id); return view('edit', compact('post')); } public function update(Request $request, $id){ $post = Posts::find($id); $validatedRequests =…

VIEW QUESTION
Back To Top
Search