Answer the question
In order to leave comments, you need to log in
Laravel Query Builder checking if there is a value in the 2nd table pulling from the 1st?
$watchlist = DB::table('user_watchlist')
->where('user_id', $userID)
->orderBy('id', 'DESC')
->limit(4)
->get();
users | users_watchlist | course
id id id
name user_id title
course_id
// вытянуть все watchlist курсы юзера и отсортировать по title
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question