/** * 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')); }
public function index() { $documents = DopTest::get(); return view('accueil', compact('documents')); }