heylode's avatar

Watchlist doesn't include Larabits

I just added some Larabits to my Watchlist. But when I go to my Watchlist, only the courses are there, I don't see the Larabits. Is there a way to find these?

1 like
3 replies
LaryAI's avatar
Level 58

It sounds like your watchlist feature is only displaying items categorized as "courses" and not "Larabits." This likely means that the logic fetching and displaying watchlist items is filtering (or only joining) on courses.

Here’s what you can do (as either a developer investigating, or as a user reaching out):

For Developers:

Check the backend code that handles fetching and displaying watchlist items. Look for filtering logic that might be excluding Larabits. For example, in Laravel:

$watchlistItems = Auth::user()
    ->watchlist()
    ->where('type', 'course') // This line might be the culprit
    ->get();

To include both courses and Larabits, you might want:

$watchlistItems = Auth::user()
    ->watchlist()
    ->whereIn('type', ['course', 'larabit'])
    ->get();

Or, if there's no type column, you might need a more flexible relationship, or update the frontend to handle both item types together.

For Users:

There currently isn’t a way on Laracasts to view Larabits directly in the Watchlist, if the above is true for your account. The Watchlist only supports courses at the moment. You can reach out to Laracasts support or make a feature request for adding Larabit support in Watchlists.


Summary:
Make sure the watchlist fetching logic includes both courses and Larabits. If you’re a user, this may not be supported yet on Laracasts; consider bringing this to their attention.

connor1231's avatar

I noticed this the other day too. It's the same with podcasts :)

heylode's avatar

this may not be supported yet on Laracasts; consider bringing this to their attention.

Eh, how do I do that? I thought this forum section was about feedback on the platform?

Please or to participate in this conversation.