コード例 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     OrcamentoItem::destroy($id);
 }
コード例 #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $orcamento = Orcamento::find($id);
     $itens = OrcamentoItem::where('orcamento_id', '=', $id)->with('produto')->get();
     return view('orcamento_itens.create', compact('orcamento', 'itens'));
 }