Ejemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $mapel = MataPelajaran::get();
     return view('admin/kd/view')->with('mapel', $mapel);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     MataPelajaran::findOrFail($id)->delete();
     return redirect(route('getMapel'));
 }