Example of joining to collections using join function helper. First argument determines a table to join, the two following arguments select columns to make the join at.
#laravel
returnDB::table('users')->join('messages','messages.from','users.id')// Select table to join and keys to make a join at->select('from','name','text','messages.created_at')->get();