Exemplo n.º 1
0
 /**
  * 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');
 }
Exemplo n.º 2
0
 /**
  * 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', 'Сервис удален!');
 }