Exemplo n.º 1
0
 public static function delete($id)
 {
     $nt = Notifikasi::find($id);
     if (!is_null($nt->first())) {
         return $nt->delete();
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
 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();
 }