app/Http/Controllers/SiswaController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Siswa  $siswa
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Siswa $sisw)
    {
        $sisw->delete();
        return redirect()->route('sisw.index')->with('succes','Siswa Berhasil di Hapus');
    }
public function destroy ( Siswa $ sisw ) { $ sisw -> delete ( ) ; return redirect ( ) -> route ( 'sisw.index' ) -> with ( 'succes' , 'Siswa Berhasil di Hapus' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .