original_string: public function unread($limit = 5)
      {
          $unread = Auth::user()->unreadNotifications->take($limit);
  
          return $unread->map(function ($item) {
              return $this->toCollect($item);
          });
      }
code: public function unread($limit = 5)
      {
          $unread = Auth::user()->unreadNotifications->take($limit);
  
          return $unread->map(function ($item) {
              return $this->toCollect($item);
          });
      }
code_tokens: public function unread ( $ limit = 5 ) { $ unread = Auth :: user ( ) -> unreadNotifications -> take ( $ limit ) ; return $ unread -> map ( function ( $ item ) { return $ this -> toCollect ( $ item ) ; } ) ; }
docstring: Shows the unread user notifications formatted.
  
  @param int $limit
  @return array
docstring_tokens: Shows the unread user notifications formatted .