/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $service = Service::findOrFail($id); Service::destroy($id); return redirect(route('services.' . $service->section))->with('message', 'Servicio ' . $service->name . ' eliminado corectamente'); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Service::destroy($id); return redirect('/admin/services')->with('status', 'Сервис удален!'); }