app/Http/Controllers/EleveController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Eleve  $eleve
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
      $eleve = Eleve::find($id);
      $niveaux = Level::all();
      $tuteurs = Tuteur::all();
      return view('eleves.edit',compact('eleve','niveaux','tuteurs'));
    }
public function edit ( $ id ) { $ eleve = Eleve :: find ( $ id ) ; $ niveaux = Level :: all ( ) ; $ tuteurs = Tuteur :: all ( ) ; return view ( 'eleves.edit' , compact ( 'eleve' , 'niveaux' , 'tuteurs' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .