DB::table('products')
->select(['products.id', 'categories.category_filter_by'])
->join('categories_relationship', 'products.id', '=', 'categories_relationship.object_id')
->join('categories', 'categories.category_id', '=', 'categories_relationship.category_id')
->get();