Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel update model from request

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