Exemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     Workorder::destroy($id);
     Session::flash('flash_message', 'Workorder deleted!');
     return redirect('workorders');
 }
 /**
  * Lookup a workorder to create a DMR from and load the create page
  * @param  Request $request
  * @return reponse
  */
 public function createDmrFromWorkorder(Request $request)
 {
     $workorder = Workorder::where('WORKORDR', $request->WORKORDR)->firstOrFail();
     return view('frontend.dmrs.create', compact('workorder'));
 }