Example #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $document = DopTest::findOrFail($id);
     return view('dop.ouvrier', compact('document'));
 }
Example #2
0
 public function index()
 {
     $documents = DopTest::get();
     return view('accueil', compact('documents'));
 }