Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel update model from request

public function update(Request $request, Teacher $teacher)
{
    $teachers = $request->all();
    $teacher->save();
    return back()->with('message', 'Record Successfully Updated!');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #update #model #request
ADD COMMENT
Topic
Name
2+4 =