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