app/Http/Controllers/KelasController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Kelas  $kelas
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Kelas $kela)
    {
        $kela->update($request->all());
        return redirect()->route('kelas.index');
    }
public function update ( Request $ request , Kelas $ kela ) { $ kela -> update ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'kelas.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .