public function mark_as_read($id)
 {
     $notification = Notifications::find($id);
     $notification->read = true;
     $notification->save();
     return $notification;
 }
Exemplo n.º 2
0
 public function getRead($id)
 {
     $data = Notifications::find($id);
     if ($data->is_read == 0) {
         $data->is_read = 1;
         $data->save();
     }
     return View::make('organisation.read_message')->with('data', $data);
 }