public static function delete($id) { $nt = Notifikasi::find($id); if (!is_null($nt->first())) { return $nt->delete(); } else { return false; } }
public function read($id) { $nt = Notifikasi::find($id); $url = $this->getRedirectURL($nt); $nt->status = "read"; $nt->update(); //redirect after change status from new to read return Redirect::to($url); }
public function delete($id) { $nt = Notifikasi::find($id); $nt->delete(); }