/**
  * Mark notifications as readed
  *
  * @param Request $request
  * @return array
  */
 public function read($id, Request $request)
 {
     $notification = $this->notification->findById($id);
     if ($notification && $this->currentUser && $notification->user_id == $this->currentUser->id) {
         $this->notification->delete($notification);
         return redirect()->to($notification->url);
     }
     return redirect()->route('home');
 }