public function unread($limit = 5)
    {
        $unread = Auth::user()->unreadNotifications->take($limit);

        return $unread->map(function ($item) {
            return $this->toCollect($item);
        });
    }
public function unread($limit = 5)
    {
        $unread = Auth::user()->unreadNotifications->take($limit);

        return $unread->map(function ($item) {
            return $this->toCollect($item);
        });
    }
public function unread ( $ limit = 5 ) { $ unread = Auth :: user ( ) -> unreadNotifications -> take ( $ limit ) ; return $ unread -> map ( function ( $ item ) { return $ this -> toCollect ( $ item ) ; } ) ; }
Shows the unread user notifications formatted.

@param int $limit
@return array
Shows the unread user notifications formatted .