Пример #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     TipoReceta::destroy($id);
     Session::flash('message', 'tipoReceta eliminado correctamente');
     return Redirect::to('tipoReceta');
 }
Пример #2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     //return "sadsadsads";
     $tiporeceta = TipoReceta::lists('descripcion', 'id');
     return view('/receta.create', compact('tiporeceta'));
 }