public function delete($bookID) { if ($this->petugas == null) { header("Location: " . base . "/Auth"); exit; } Book::destroy($bookID); header("Location: " . base . "/Book"); }
public function delete($bookID) { if ($this->petugas == null) { header("Location: " . base . "/Auth"); exit; } Book::destroy($bookID); header("Location: " . base . "/Book"); }