public static function jumlah($id_buku, $jml) { $buku = Buku::find($id_buku); $buku->jumlah = $jml; $buku->save(); }
<?php require_once "config.php"; $id = $_GET['id']; $buku = Buku::find($id); $buku->delete(); header('Location: index.php');