Exemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  * GET /admpedido/{id}/edit
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $pedido = Pedido::with('cliente', 'status', 'produtos', 'historico')->find($id);
     $status = PedidoStatus::all();
     return View::make('admin.pedido.edit', compact('pedido', 'status'));
 }
 /**
  * Show the form for editing the specified resource.
  * GET /admpedido/{id}/edit
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $cliente = User::findOrFail($id);
     $status = PedidoStatus::all();
     return View::make('admin.produtopersonalizado.edit', compact('cliente', 'status'));
 }