public function editer($id) { $horaire = Horaire::find($id); $absents = Horaire::absents($id); return View('app/noter_absences', ['horaire' => $horaire, 'absents' => $absents, 'etudiants' => $horaire->matiere->promo->etudiants]); }