/** * Show the form for editing the specified resource. * * @param int $id * @return $this */ public function edit($id) { $strip = Strip::findOrFail($id); $strip_types = StripType::lists('reference', 'id'); return view('admin.strips.edit')->with('strip', $strip)->with('strip_types', $strip_types)->with('title', trans('titles.editing_strip')); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\RedirectResponse * @internal param Request $request */ public function destroy($id) { $entity = StripType::findOrFail($id); $entity->delete(); $message = trans('messages.strip_type_successfully_removed'); Flash::warning($message); return redirect()->route('admin.strip_types.index'); }