public function update(Request $request, $id) { $quote = Quote::whereId($id)->firstOrFail(); $quote->quote = $request->get('quote'); $quote->author = $request->get('author'); $quote->save(); Toastr::success('Quote updated.'); return redirect(action('QuotesController@index', $quote->id)); }