/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(SourceFormRequest $request, Source $source) { // Update the existing source $source->update($request->all()); flash()->success('Source has been updated!'); return redirect('sources'); }