findOrFail($id); $tabs = TabManager::get('reviews'); return view('review::admin.reviews.edit', compact('review', 'tabs')); } /** * Update the specified resource in storage. * * @param int $id * @return \Illuminate\Http\Response */ public function update($id) { $review = Review::withoutGlobalScope('approved')->findOrFail($id); $review->update(request()->all()); return back()->withSuccess(trans('admin::messages.resource_saved', ['resource' => $this->getLabel()])); } /** * Destroy resources by given ids. * * @param string $ids * @return void */ public function destroy($ids) { Review::withoutGlobalScope('approved') ->whereIn('id', explode(',', $ids)) ->delete(); } }